Fixed wrong sensor being monitored (AMD)

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:
Vincent Johansson 2024-09-09 14:01:10 +02:00
parent a42e8fb51e
commit a9b915a224
1 changed files with 1 additions and 1 deletions

View File

@ -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