Update powerwall.sh

This commit is contained in:
2023-11-07 07:52:46 -06:00
parent fd62723c54
commit 8e283ba7e8

View File

@@ -616,7 +616,7 @@ CHECKPOWER(){
if [ "${avgdays}" != "" ]; then
average=$(AVERAGEPOWER ${PW_POWERSENSOR_ID['network-rack']} ${avgdays})
[[ "${average}" == *"."* ]] && [[ "${average}" != *".0"* ]] && average=`printf "%'.2f\n" ${average}` || average=`printf "%'.0f\n" ${average}`
average_disp="${idsCL[LightYellow]} ${average}'watts"
average_disp="${idsCL[LightYellow]} ${average}'watts"
else
average_disp=""
fi