Update offsite-power-check.sh

This commit is contained in:
2023-11-05 14:26:57 -06:00
parent 78686984c3
commit 8cd0365752

View File

@@ -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}