Skip to content

Commit b676a0d

Browse files
committed
amd_gpu.query_load() returns a float 0.0-1.0; convert it to a percentage
1 parent 980577f commit b676a0d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

library/sensors/sensors_python.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -331,7 +331,7 @@ def stats() -> Tuple[
331331
memory_percentage = math.nan
332332

333333
try:
334-
load = amd_gpu.query_load()
334+
load = amd_gpu.query_load() * 100
335335
except:
336336
load = math.nan
337337

0 commit comments

Comments
 (0)