From 1544bed3a92be9fc3e36a29595a3e4b0f7a5f35e Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Tue, 26 Dec 2023 16:05:57 -0600 Subject: [PATCH] Update temp.inc.sh --- inc/temp.inc.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/temp.inc.sh b/inc/temp.inc.sh index 5452dc7d..04faceec 100644 --- a/inc/temp.inc.sh +++ b/inc/temp.inc.sh @@ -215,7 +215,7 @@ CHECKTEMPSENSOR(){ echo -en "\r\033[K${idsCL[White]}${idsST[Bold]}${1}-Probe ${idsST[Reset]}${spc}${idsCL[Default]}: " if [ "${average}" != "" ]; then average=$(AVERAGETEMP ${PW_SENSOR_ID["${1}-Probe"]} ${avgdays}) - c=0; spca=''; spc1=`expr 6 - ${#average}`; until [ ${c} = ${spc1} ]; do spca="${spca} "; c=`expr ${c} + 1`; done + c=0; spca=''; spc1=`expr 7 - ${#average}`; until [ ${c} = ${spc1} ]; do spca="${spca} "; c=`expr ${c} + 1`; done if [ "${average}" == "" ]; then averagedisp="${idsCL[Green]}" elif [ $(bc -l <<< "${average} >= ${temp_warn}") -eq 1 ] && [ $(bc -l <<< "${average} < ${temp_crit}") -eq 1 ]; then