From 7a3b2572bc93d13eb0685457eab3770b546e83ec Mon Sep 17 00:00:00 2001 From: Meliox Date: Wed, 12 Jun 2024 19:22:50 +0200 Subject: [PATCH] fix cpu adress not being set --- pve-mod-gui-sensors.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/pve-mod-gui-sensors.sh b/pve-mod-gui-sensors.sh index d93989b..a85f9c7 100644 --- a/pve-mod-gui-sensors.sh +++ b/pve-mod-gui-sensors.sh @@ -97,7 +97,7 @@ function configure { case "$item" in "coretemp-"*) # Intel CPU - # Try to find temperature information + # Set temperature search criterias CPU_ADDRESS_PREFIX=$item CPU_ITEM_PREFIX="Core " CPU_TEMP_CAPTION="Core" @@ -105,7 +105,7 @@ function configure { ;; "k10temp-"*) # AMD CPU - # Try to find temperature information + # Find and set temperature search criterias if (echo "$sensorsOutput" | grep -A 2 "$item" | grep -q "Tctl"); then CPU_ADDRESS_PREFIX=$item CPU_ITEM_PREFIX="Tccd" @@ -115,6 +115,7 @@ function configure { CPU_ITEM_PREFIX="Tccd" CPU_TEMP_CAPTION="Temp" else + CPU_ADDRESS_PREFIX=$item CPU_ITEM_PREFIX="temp" CPU_TEMP_CAPTION="Temp" fi