Skip to content

Commit 3e52842

Browse files
Fixed wrong sensor being monitored (AMD) (#772)
Instead of only looking for 'CPU' temp.label, I added that it should look for 'Tctl', as that is the sensor for average temp on my 7800X3D cpu.
1 parent 08d95b6 commit 3e52842

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

auto_cpufreq/core.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -870,7 +870,7 @@ def sysinfo():
870870
for sensor in temp_sensors:
871871
# iterate over all temperatures in the current sensor
872872
for temp in temp_sensors[sensor]:
873-
if 'CPU' in temp.label and temp.current != 0:
873+
if ('CPU' in temp.label or 'Tctl' in temp.label) and temp.current != 0:
874874
temp_per_cpu = [temp.current] * online_cpu_count
875875
break
876876
else: continue

0 commit comments

Comments
 (0)