From: Andrew Dolgov Date: Wed, 23 Jan 2008 09:33:41 +0000 (+0100) Subject: update_daemon2: print idle notice once per 10 seconds X-Git-Tag: 1.2.20~76 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=ce1aa9b7c22651e2d5d8728e57f3b1615e57fa98;p=tt-rss.git update_daemon2: print idle notice once per 10 seconds --- diff --git a/update_daemon2.php b/update_daemon2.php index 650b101d..53de6b3e 100644 --- a/update_daemon2.php +++ b/update_daemon2.php @@ -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()) {