update_daemon2: print idle notice once per 10 seconds

This commit is contained in:
Andrew Dolgov 2008-01-23 10:33:41 +01:00
parent 6a69e61ffb
commit ce1aa9b7c2
1 changed files with 3 additions and 1 deletions

View 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()) {