Update offsite-power-check.sh
This commit is contained in:
@@ -51,7 +51,7 @@ VOLTAGE: ${OFFSITE_VOLTIN}'Volts"
|
||||
fi
|
||||
|
||||
else
|
||||
[ $(expr `date +%s` - $(stat -f %Y ${PW_LOGPOWER})) -le 300 ] && echo "($(date +'%Y-%m-%d %H:%M:%S')) - ${OFFSITE_VOLTIN}'Volts - Offsite Normal Voltage" >> ${PW_LOGPOWER}
|
||||
[ $(expr `date +%s` - $(stat -f %Y ${PW_LOGPOWER})) -gt 299 ] && echo "($(date +'%Y-%m-%d %H:%M:%S')) - ${OFFSITE_VOLTIN}'Volts - Offsite Normal Voltage" >> ${PW_LOGPOWER}
|
||||
fi
|
||||
else
|
||||
echo "($(date +'%Y-%m-%d %H:%M:%S')) - ${OFFSITE_VOLTIN}'Volts - OFFSITE POWER OFF/LOW POWER" >> ${PW_LOGPOWER}
|
||||
|
||||
Reference in New Issue
Block a user