Update powerwall.sh
This commit is contained in:
@@ -776,7 +776,7 @@ CHECKPOWER(){
|
||||
elif [ "${HOST_WATTS}" != "0" ]; then
|
||||
[ "${PS1}" == "" ] && PS1="0.0" || PS1=`echo "scale=1; ${PS1}/10" | bc`; (( $(bc <<<"${PS1} < 1") )) && [[ "${PS1}" = *"."* ]] && PS1="0${PS1}"
|
||||
if [ "${PS2}" == "" ]; then
|
||||
PS2="0.0"
|
||||
PS2='0.0'
|
||||
else
|
||||
PS2=`echo "scale=1; ${PS2}/10" | bc`
|
||||
(( $(bc <<<"${PS2} < 1") )) && [[ "${PS2}" = *"."* ]] && PS2="0${PS2}"
|
||||
|
||||
Reference in New Issue
Block a user