Actually fix lint

This commit is contained in:
Rob Arnold 2024-02-19 19:05:44 -08:00
parent 9eef9da6bf
commit fec0bba46e

View File

@ -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"]