mirror of
https://github.com/AdnanHodzic/auto-cpufreq.git
synced 2025-07-28 16:14:14 +02:00
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.
This commit is contained in:
parent
08d95b6bec
commit
3e52842022
@ -870,7 +870,7 @@ def sysinfo():
|
|||||||
for sensor in temp_sensors:
|
for sensor in temp_sensors:
|
||||||
# iterate over all temperatures in the current sensor
|
# iterate over all temperatures in the current sensor
|
||||||
for temp in temp_sensors[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
|
temp_per_cpu = [temp.current] * online_cpu_count
|
||||||
break
|
break
|
||||||
else: continue
|
else: continue
|
||||||
|
Loading…
x
Reference in New Issue
Block a user