Skip to content

Commit bb9d92a

Browse files
committed
Fix pyamdgpuinfo GPU core clock unit
1 parent 7eebd7d commit bb9d92a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

library/sensors/sensors_python.py

+3-1
Original file line numberDiff line numberDiff line change
@@ -339,9 +339,11 @@ def fan_percent() -> float:
339339
@staticmethod
340340
def frequency() -> float:
341341
if pyamdgpuinfo:
342-
return pyamdgpuinfo.get_gpu(0).query_sclk()
342+
return pyamdgpuinfo.get_gpu(0).query_sclk() / 1000000
343343
elif pyadl:
344344
return pyadl.ADLManager.getInstance().getDevices()[0].getCurrentEngineClock()
345+
else:
346+
return math.nan
345347

346348
@staticmethod
347349
def is_available() -> bool:

0 commit comments

Comments
 (0)