We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent a9e7253 commit 181c954Copy full SHA for 181c954
library/sensors/sensors_librehardwaremonitor.py
@@ -323,7 +323,8 @@ def fan_percent(cls) -> float:
323
try:
324
for sensor in gpu_to_use.Sensors:
325
if sensor.SensorType == Hardware.SensorType.Control:
326
- return float(sensor.Value)
+ if sensor.Value:
327
+ return float(sensor.Value)
328
except:
329
pass
330
@@ -339,8 +340,11 @@ def frequency(cls) -> float:
339
340
341
342
- if sensor.SensorType == Hardware.SensorType.Control:
343
- pass
+ if sensor.SensorType == Hardware.SensorType.Clock:
344
+ # Keep only real core clocks, ignore effective core clocks
345
+ if "Core" in str(sensor.Name) and "Effective" not in str(sensor.Name):
346
347
348
349
350
0 commit comments