Update powerwall.sh
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user