Skip to content

Commit

Permalink
Fixed wrong sensor being monitored (AMD)
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
johanssonvincent committed Sep 9, 2024
1 parent a42e8fb commit a9b915a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion auto_cpufreq/core.py
Original file line number Diff line number Diff line change
Expand Up @@ -856,7 +856,7 @@ def sysinfo():
for sensor in temp_sensors:
# iterate over all temperatures in the current sensor
for temp in temp_sensors[sensor]:
if 'CPU' in temp.label and temp.current != 0:
if ('CPU' in temp.label or 'Tctl' in temp.label) and temp.current != 0:
temp_per_cpu = [temp.current] * online_cpu_count
break
else: continue
Expand Down

0 comments on commit a9b915a

Please sign in to comment.