From 2e400d0a4bb017b2f682663c4b9655404d9a3c54 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sun, 21 Apr 2024 12:51:53 -0500 Subject: [PATCH] Update temp.inc.sh --- inc/temp.inc.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/inc/temp.inc.sh b/inc/temp.inc.sh index f4ff0c02..c71f234a 100644 --- a/inc/temp.inc.sh +++ b/inc/temp.inc.sh @@ -303,14 +303,15 @@ CHECKTEMP(){ fi if [ "${average}" != "" ] || [ "${temp_f}" != "" ]; then - tmp="${spct}${temp_f}${GAUGESH}" [ "${average}" != "" ] && fws=11 || fws=21 [ ${#temp_warn} == 2 ] && spcw=' ' || spcw=' ' [ ${#temp_crit} == 2 ] && spcc=' ' || spcc=' ' if [ "${TTYPE}" == "fans" ]; then - c=0; spc=''; spc1=`expr ${fws} - ${#tmp} - 3`; until [ ${c} = ${spc1} ]; do spc="${spc} "; c=`expr ${c} + 1`; done + tmp="${lmd}${spct}${temp_f}${GAUGESH}" + c=0; spc=''; spc1=`expr ${fws} - ${#tmp} + 5`; until [ ${c} = ${spc1} ]; do spc="${spc} "; c=`expr ${c} + 1`; done echo -e "${spc}${idsCL[Default]}[ ${idsCL[Green]}${GL_LOW}°F${idsCL[Default]} <--> ${idsCL[LightYellow]}${GL_HIGH}°F${idsCL[Default]} ]" else + tmp="${spct}${temp_f}${GAUGESH}" c=0; spc=''; spc1=`expr ${fws} - ${#tmp}`; until [ ${c} = ${spc1} ]; do spc="${spc} "; c=`expr ${c} + 1`; done echo -e "${spc}${idsCL[Default]}[${spcw}${idsCL[Yellow]}${temp_warn}${GAUGESH}${idsCL[Default]} /${spcc}${idsCL[LightRed]}${temp_crit}${GAUGESH}=>${idsCL[Default]} ]" fi