From 948aad5fdbff453de51be5d81ae232fd7b43cf8b Mon Sep 17 00:00:00 2001 From: David Schroeder Date: Tue, 31 Oct 2023 13:26:16 -0500 Subject: [PATCH] Update powerwall.sh --- powerwall.sh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/powerwall.sh b/powerwall.sh index bb1aa0ed..2c22750a 100755 --- a/powerwall.sh +++ b/powerwall.sh @@ -614,7 +614,7 @@ CHECKPOWER(){ if [ -f ${hostfile} ] && [ "${hostfile}" != "${PW_TMPFOLDER}/*.hostpower" ]; then host=${hostfile%.*}; host=${host##*/} if [ "${host}" != "*" ] && [ "${host}" != "done" ]; then - watts=`printf "%'.3f\n" $(cat ${hostfile}) + watts=`printf "%'.3f\n" $(cat ${hostfile})` if [ "${watts}" == "down" ]; then hostpower="${idsCL[Red]}Host Offline" elif [ "${watts}" == "0" ]; then hostpower="${idsCL[Default]}n/a" else hostpower="${idsCL[Green]}${watts}'W"