fix cpu adress not being set
This commit is contained in:
parent
32ca3ed2e0
commit
7a3b2572bc
@ -97,7 +97,7 @@ function configure {
|
|||||||
case "$item" in
|
case "$item" in
|
||||||
"coretemp-"*)
|
"coretemp-"*)
|
||||||
# Intel CPU
|
# Intel CPU
|
||||||
# Try to find temperature information
|
# Set temperature search criterias
|
||||||
CPU_ADDRESS_PREFIX=$item
|
CPU_ADDRESS_PREFIX=$item
|
||||||
CPU_ITEM_PREFIX="Core "
|
CPU_ITEM_PREFIX="Core "
|
||||||
CPU_TEMP_CAPTION="Core"
|
CPU_TEMP_CAPTION="Core"
|
||||||
@ -105,7 +105,7 @@ function configure {
|
|||||||
;;
|
;;
|
||||||
"k10temp-"*)
|
"k10temp-"*)
|
||||||
# AMD CPU
|
# AMD CPU
|
||||||
# Try to find temperature information
|
# Find and set temperature search criterias
|
||||||
if (echo "$sensorsOutput" | grep -A 2 "$item" | grep -q "Tctl"); then
|
if (echo "$sensorsOutput" | grep -A 2 "$item" | grep -q "Tctl"); then
|
||||||
CPU_ADDRESS_PREFIX=$item
|
CPU_ADDRESS_PREFIX=$item
|
||||||
CPU_ITEM_PREFIX="Tccd"
|
CPU_ITEM_PREFIX="Tccd"
|
||||||
@ -115,6 +115,7 @@ function configure {
|
|||||||
CPU_ITEM_PREFIX="Tccd"
|
CPU_ITEM_PREFIX="Tccd"
|
||||||
CPU_TEMP_CAPTION="Temp"
|
CPU_TEMP_CAPTION="Temp"
|
||||||
else
|
else
|
||||||
|
CPU_ADDRESS_PREFIX=$item
|
||||||
CPU_ITEM_PREFIX="temp"
|
CPU_ITEM_PREFIX="temp"
|
||||||
CPU_TEMP_CAPTION="Temp"
|
CPU_TEMP_CAPTION="Temp"
|
||||||
fi
|
fi
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user