From a262d10c1a71de7b5aca150e29f6d40c43d5543a Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Tue, 26 Dec 2023 14:02:25 -0600 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 ed495cff..02b28ba6 100644 --- a/inc/temp.inc.sh +++ b/inc/temp.inc.sh @@ -184,8 +184,12 @@ CHECKTEMPSENSOR(){ if [ "${PW_SENSOR_TYPE[${1}]}" == "system" ] && [[ "${1}" = *"FAN"* ]]; then temp_f_disp=$(IDS_NUMBER_FORMAT ${temp_f} 0) + temp_warn_disp=$(IDS_NUMBER_FORMAT ${temp_warn} 0) + temp_crit_disp=$(IDS_NUMBER_FORMAT ${temp_crit} 0) else temp_f_disp=${temp_f} + temp_warn_disp=${temp_warn} + temp_crit_disp=${temp_crit} fi if [ $(bc -l <<< "${temp_f} >= ${temp_warn}") -eq 1 ] && [ $(bc -l <<< "${temp_f} < ${temp_crit}") -eq 1 ]; then @@ -200,7 +204,7 @@ CHECKTEMPSENSOR(){ c=0; spc=''; spc1=`expr 12 - ${#tmp}`; until [ ${c} = ${spc1} ]; do spc="${spc} "; c=`expr ${c} + 1`; done [ ${#temp_warn} == 2 ] && spcw=' ' || spcw=' ' [ ${#temp_crit} == 2 ] && spcc=' ' || spcc=' ' - echo -e "${spc}[${spcw}${idsCL[Yellow]}${temp_warn}${GAUGESH}${idsCL[Default]} /${spcc}${idsCL[LightRed]}${temp_crit}${GAUGESH}=>${idsCL[Default]} ]" + echo -e "${spc}[${spcw}${idsCL[Yellow]}${temp_warn_disp}${GAUGESH}${idsCL[Default]} /${spcc}${idsCL[LightRed]}${temp_crit_disp}${GAUGESH}=>${idsCL[Default]} ]" if [ "${1}" == "ServerRoomLA" ]; then temp_probe_f=$(bc <<< "scale=2; ${temp_probe_c}*1.8+32")