From 8a0fe8a32e1730b208411d2c11b296730e337026 Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Sun, 14 May 2023 21:42:58 -0500 Subject: [PATCH] Update powerwall.sh --- powerwall.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/powerwall.sh b/powerwall.sh index 06f0335d..eab3cc70 100755 --- a/powerwall.sh +++ b/powerwall.sh @@ -66,10 +66,10 @@ CHECKTEMPSENSOR(){ echo -en "${idsCL[Green]}Normal - ($temp_f°F)${idsCL[Default]}" fi - c=0; spc=''; spc1=`expr 12 - ${#temp_f} - 2`; until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done + c=0; spc=''; spc1=`expr 10 - ${#temp_f} - 2`; until [ $c = ${spc1} ]; do spc="${spc} "; c=`expr $c + 1`; done c=0; spcn=''; spc1=`expr 7 - ${#temp_warn} - 3`; until [ $c = ${spc1} ]; do spcn="${spcn} "; c=`expr $c + 1`; done c=0; spcw=''; spc1=`expr 6 - ${#temp_warn} - 2`; until [ $c = ${spc1} ]; do spcw="${spcw} "; c=`expr $c + 1`; done - echo -e "${spc}${idsCL[Green]}<=$(expr ${temp_warn} - 1)°F${idsCL[Default]}${spcn}/ ${idsCL[Yellow]}${temp_warn}°F${idsCL[Default]}${spcw}/ ${idsCL[Red]}${temp_crit}°F${idsCL[Default]}" + echo -e "[ ${spc}${idsCL[Green]}<=$(expr ${temp_warn} - 1)°F${idsCL[Default]}${spcn}/ ${idsCL[Yellow]}${temp_warn}°F${idsCL[Default]}${spcw}/ ${idsCL[Red]}${temp_crit}°F${idsCL[Default]} ]" fi }