Verified Commit 51c2e803 authored by Fabio Bonfiglio's avatar Fabio Bonfiglio 💾
Browse files

Cold start correction

parent 41f71710
......@@ -28,6 +28,7 @@ REMOTEHOST="google.com"
DESTINATION="checknet.csv"
CHATID=0
STATUS=0
OUTAGESTART=$(date +%s)
trap "RUNME=0" INT
......@@ -74,7 +75,7 @@ while [ $RUNME -eq 1 ]; do
else
if [ $STATUS -eq 0 ]; then
STATUS=1
OUTAGEDURATION=$(( $(date +%s) - $OUTAGESTART ))
OUTAGEDURATION=$(( $(date +%s) - ${OUTAGESTART} ))
if [ $CHATID -ne 0 ]; then
curl -s \
-d chat_id=${CHATID} \
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment