From deb2da1d93456663f57c066ed5f5eaa93fafe272 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Wed, 27 Dec 2023 09:45:51 -0600 Subject: [PATCH] Update temp.inc.sh --- inc/temp.inc.sh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/inc/temp.inc.sh b/inc/temp.inc.sh index 6587ad2f..23091a41 100644 --- a/inc/temp.inc.sh +++ b/inc/temp.inc.sh @@ -87,10 +87,8 @@ CHECKTEMP(){ if [ "${avgdays}" != "noavg" ]; then if [ $(bc -l <<< "${avgdays} < 1") -eq 1 ]; then avgdays_disp="$(ROUND_NUMBER $(bc <<< "scale=2; ${avgdays}*24")) Hour" - elif [ $(bc -l <<< "${avgdays} = 1") -eq 1 ]; then - avgdays_disp="${avgdays} Day" else - avgdays_disp="${avgdays} Days" + avgdays_disp="${avgdays} Day" fi echo -en "Pulling data and calculating ${avgdays} Day average ... " else @@ -231,7 +229,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_disp}${GAUGESH}${idsCL[Default]} /${spcc}${idsCL[LightRed]}${temp_crit_disp}${GAUGESH}=>${idsCL[Default]} ]" + echo -e "${idsCL[Default]}${spc}[${spcw}${idsCL[Yellow]}${temp_warn_disp}${GAUGESH}${idsCL[Default]} /${spcc}${idsCL[LightRed]}${temp_crit_disp}${GAUGESH}=>${idsCL[Default]} ]" # if [ "${PW_SENSOR_TYPE[${1}]}" == "lacrosse" ]; then # temp_probe_f=$(bc <<< "scale=2; ${temp_probe_c}*1.8+32")