]> git.wh0rd.org Git - tt-rss.git/commitdiff
remove random waiting on task start, wait based on task id
authorAndrew Dolgov <fox@madoka.volgo-balt.ru>
Sun, 31 Mar 2013 10:39:31 +0000 (14:39 +0400)
committerAndrew Dolgov <fox@madoka.volgo-balt.ru>
Sun, 31 Mar 2013 10:39:31 +0000 (14:39 +0400)
update_daemon2.php

index e8523d22bd99c7a82f189812a1c86c265f0f0a4e..fa64b302d8464aee7836fc0db5112dba24f01a10 100755 (executable)
 
                                        $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) {