Skip to content

Commit

Permalink
amd_gpu.query_load() returns a float 0.0-1.0; convert it to a percentage
Browse files Browse the repository at this point in the history
  • Loading branch information
sutaburosu committed Jul 23, 2024
1 parent 980577f commit b676a0d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion library/sensors/sensors_python.py
Original file line number Diff line number Diff line change
Expand Up @@ -331,7 +331,7 @@ def stats() -> Tuple[
memory_percentage = math.nan

try:
load = amd_gpu.query_load()
load = amd_gpu.query_load() * 100
except:
load = math.nan

Expand Down

0 comments on commit b676a0d

Please sign in to comment.