Update offsite-power-check.sh

This commit is contained in:
2023-11-05 22:04:20 -06:00
parent 0282040f98
commit 2ebe3f70ab

View File

@@ -26,7 +26,6 @@ fi
PWO_START(){
startup=true
while true; do
start=`date +%s`
upsinfo=$(upsc CP1500PFCLCD)
if [ "$(echo "${upsinfo}" | grep 'input.voltage:' | sed 's/.*: //')" != "" ]; then
OFFSITE_VOLTIN=$(echo "${upsinfo}" | grep 'input.voltage:' | sed 's/.*: //')
@@ -95,7 +94,6 @@ PWO_START(){
/usr/local/etc/rc.d/nut.sh restart
sleep 10s
fi
end=`date +%s`; runtime=$((end-start)); echo -e "\nruntime: ${runtime}\nsleeping for 5secs ... "
sleep 5s
done
}