]> git.wh0rd.org - tt-rss.git/commitdiff
update_daemon2: print idle notice once per 10 seconds
authorAndrew Dolgov <fox@madoka.spb.ru>
Wed, 23 Jan 2008 09:33:41 +0000 (10:33 +0100)
committerAndrew Dolgov <fox@madoka.spb.ru>
Wed, 23 Jan 2008 09:33:41 +0000 (10:33 +0100)
update_daemon2.php

index 650b101ddcc8b6498d09d15552261d34d26348b2..53de6b3efa1712321df7046cf1ac47203d8749d7 100644 (file)
@@ -43,7 +43,9 @@
 
                $next_spawn = $last_checkpoint + SPAWN_INTERVAL - time();
 
-               print "[MASTER] active jobs: $running_jobs, next spawn at $next_spawn sec\n";
+               if ($next_spawn % 10 == 0) {
+                       print "[MASTER] active jobs: $running_jobs, next spawn at $next_spawn sec\n";
+               }
 
                if ($last_checkpoint + SPAWN_INTERVAL < time()) {