1
0
Fork 0

Added a basic backoff if in archive mode

This commit is contained in:
Raynor 2022-12-21 03:29:28 +00:00
parent 2acfdf264f
commit d3accb4d65
1 changed files with 8 additions and 1 deletions

View File

@ -36,6 +36,13 @@ do
fi
done
else
curl -X "GET" "$url" --no-progress-meter >> "/data/$today.$host.json"
curl -X "GET" "$url" --no-progress-meter >> "/data/$today/$today.$host.json"
fi
# If we are in archive mode only, then back off if there is a curl error.
if [[ $archive == "true" ]]
then
sleep 5m;
fi
done