Switch to a more random number between 1-2,000. that'd be somewhere between

immediately and 33 minutes. If people are setting their time zone
properly that also helps distribute the load, since it runs at 1:01 AM
local time.
This commit is contained in:
Scott Ullrich 2007-11-28 01:32:03 +00:00
parent c0e7d986cd
commit 4dd8796b41

View File

@ -5,7 +5,7 @@
# www.pfsense.com
# Grab a random value
value=`hexdump -n1 -e\"%u\" /dev/random`
value=`od -A n -d -N2 /dev/random | awk '{print int(($1/65536)*2000)}'`
# Sleep for that time.
sleep $value