diff options
author | Andrew Dolgov <[email protected]> | 2008-01-23 10:33:41 +0100 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2008-01-23 10:33:41 +0100 |
commit | ce1aa9b7c22651e2d5d8728e57f3b1615e57fa98 (patch) | |
tree | d23ca02e0caceb7b2599eb5d6e6a396beef00409 /update_daemon2.php | |
parent | 6a69e61ffbd1fe8ff348adc84fe32c7b580c9e75 (diff) |
update_daemon2: print idle notice once per 10 seconds
Diffstat (limited to 'update_daemon2.php')
-rw-r--r-- | update_daemon2.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/update_daemon2.php b/update_daemon2.php index 650b101dd..53de6b3ef 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()) { |