diff options
author | Petter Reinholdtsen <pere@hungry.com> | 2007-10-12 15:53:48 +0000 |
---|---|---|
committer | Petter Reinholdtsen <pere@hungry.com> | 2007-10-12 15:53:48 +0000 |
commit | 5d325d6c4049ebd1a93a2beb925d22e82d8233af (patch) | |
tree | 034741bf0124007c737bc4b41a986884fd4d8ab8 /sitesummary-client | |
parent | 07bd61e122a7e79ff965a594bbfc63e691a89abe (diff) | |
download | sitesummary-5d325d6c4049ebd1a93a2beb925d22e82d8233af.tar.gz sitesummary-5d325d6c4049ebd1a93a2beb925d22e82d8233af.tar.bz2 sitesummary-5d325d6c4049ebd1a93a2beb925d22e82d8233af.tar.xz |
* Move random sleep from the report script and into the cron script,
to make it possible to report imediately from a client.
Diffstat (limited to 'sitesummary-client')
-rw-r--r-- | sitesummary-client | 15 |
1 files changed, 0 insertions, 15 deletions
diff --git a/sitesummary-client b/sitesummary-client index 44e416b..9e53e1f 100644 --- a/sitesummary-client +++ b/sitesummary-client @@ -53,21 +53,6 @@ do done done -# Sleep a random number of seconds to avoid all clients connecting to -# the server at the same time. Based on code from the cron-apt -# package. -if [ -n "$runsleep" ] ; then - if [ $runsleep -gt 0 ] ; then - if [ -z "$RANDOM" ] ; then - # A fix for shells that do not have this bash feature. - RANDOM=$(dd if=/dev/urandom count=1 2> /dev/null | cksum | cut -c"1-5") - fi - TIME=$(($RANDOM % $runsleep)) - sleep $TIME - fi -fi - - mkdir $tmpdir && cd $tmpdir for fragdir in $fragdirs ; do |