mirror of
https://github.com/blakeblackshear/frigate.git
synced 2026-02-09 12:45:25 +03:00
Actually fix lint
This commit is contained in:
parent
9eef9da6bf
commit
fec0bba46e
@ -214,11 +214,12 @@ def is_vaapi_amd_driver() -> bool:
|
|||||||
logger.error(f"Unable to poll vainfo: {p.stderr}")
|
logger.error(f"Unable to poll vainfo: {p.stderr}")
|
||||||
return False
|
return False
|
||||||
else:
|
else:
|
||||||
output = p.stdout.decode('unicode_escape').split("\n")
|
output = p.stdout.decode("unicode_escape").split("\n")
|
||||||
|
|
||||||
# VA Info will print out the friendly name of the driver
|
# VA Info will print out the friendly name of the driver
|
||||||
return any("AMD Radeon Graphics" in line for line in output)
|
return any("AMD Radeon Graphics" in line for line in output)
|
||||||
|
|
||||||
|
|
||||||
def get_amd_gpu_stats() -> dict[str, str]:
|
def get_amd_gpu_stats() -> dict[str, str]:
|
||||||
"""Get stats using radeontop."""
|
"""Get stats using radeontop."""
|
||||||
radeontop_command = ["radeontop", "-d", "-", "-l", "1"]
|
radeontop_command = ["radeontop", "-d", "-", "-l", "1"]
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user