From ce1aa9b7c22651e2d5d8728e57f3b1615e57fa98 Mon Sep 17 00:00:00 2001 From: Andrew Dolgov Date: Wed, 23 Jan 2008 10:33:41 +0100 Subject: [PATCH] update_daemon2: print idle notice once per 10 seconds --- update_daemon2.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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()) { -- 2.39.5