From 3e528420223b40611ec2664e5e3738dc4800afbb Mon Sep 17 00:00:00 2001 From: Vincent Johansson Date: Mon, 9 Sep 2024 17:50:01 +0200 Subject: [PATCH] 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. --- auto_cpufreq/core.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/auto_cpufreq/core.py b/auto_cpufreq/core.py index ae0147f..2c1d076 100755 --- a/auto_cpufreq/core.py +++ b/auto_cpufreq/core.py @@ -870,7 +870,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