From: Andrew Dolgov Date: Sun, 31 Mar 2013 10:39:31 +0000 (+0400) Subject: remove random waiting on task start, wait based on task id X-Git-Tag: 1.7.6~109 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=32f3c02ba3afb69cc3b399ac02f4f47a708002e2;p=tt-rss.git remove random waiting on task start, wait based on task id --- diff --git a/update_daemon2.php b/update_daemon2.php index e8523d22..fa64b302 100755 --- a/update_daemon2.php +++ b/update_daemon2.php @@ -248,8 +248,8 @@ $nf = 0; - _debug("Waiting before update.."); - sleep(rand(1,15)); + _debug("Waiting before update [$j].."); + sleep($j*5); $nf = update_daemon_common($link); if (rand(0,100) > 50) {