Update powerwall.sh
This commit is contained in:
@@ -761,7 +761,9 @@ CHECKPOWER(){
|
||||
PS2=$(snmpwalk -t 1 -r 0 -v 1 -c public ${PW_HOST_IDRACS[${SENSOR}]} iso.3.6.1.4.1.674.10892.5.4.600.30.1.6.1.${s} | sed 's/.*: //')
|
||||
if [ "${PS2}" == "" ]; then
|
||||
PS2=0
|
||||
echo 'yes'
|
||||
else
|
||||
echo 'no'
|
||||
PS2=`echo "scale=1; ${PS2}/10" | bc`
|
||||
(( $(bc <<<"${PS2} < 1") )) && [[ "${PS2}" = *"."* ]] && PS2="0${PS2}"
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user