mirror of
https://github.com/raynormast/fake-firehose.git
synced 2025-03-12 15:21:17 +00:00
Added a basic backoff if in archive mode
This commit is contained in:
parent
2acfdf264f
commit
d3accb4d65
1 changed files with 8 additions and 1 deletions
|
@ -36,6 +36,13 @@ do
|
||||||
fi
|
fi
|
||||||
done
|
done
|
||||||
else
|
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
|
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
|
done
|
Loading…
Add table
Reference in a new issue