From a496617ba1ff3dd351dd86cb2dc85d671937a193 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Mon, 19 May 2025 22:18:47 -0500 Subject: [PATCH] Update temp.inc.sh --- inc/temp.inc.sh | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/inc/temp.inc.sh b/inc/temp.inc.sh index 3fd52215..e5cff5ae 100644 --- a/inc/temp.inc.sh +++ b/inc/temp.inc.sh @@ -137,7 +137,11 @@ CHECKTEMP(){ fi c=0; spct=''; [ "${PW_SENSOR_TYPE[${SENSOR}]}" == "system" ] && [[ "${SENSOR}" = *"FAN"* ]] && spc1=`expr 6 - ${#temp_f}` || spc1=`expr 7 - ${#temp_f}` until [ ${c} = ${spc1} ]; do spct="${spct} "; ((c++)); done - reading="${lclr}${lmd}${spct}"$(IDS_NUMBER_FORMAT ${temp_f} 2 yes)"${GAUGESH}" + if [[ "${SENSOR}" = *"FAN"* ]]; then + reading="${lclr}${lmd}${spct}"$(IDS_NUMBER_FORMAT ${temp_f} 0)"${GAUGESH}" + else + reading="${lclr}${lmd}${spct}"$(IDS_NUMBER_FORMAT ${temp_f} 2 yes)"${GAUGESH}" + fi [ ${REPORT} -eq 0 ] && echo -en "\r\033[K" echo -en "${idsCL[White]}${idsST[Bold]}${SENSOR_DESC}${idsST[Reset]}${spc}${idsCL[Default]}: ${reading} "