eta: don't count TD_SETTING_UP as a running process
authorJens Axboe <axboe@fb.com>
Fri, 10 Oct 2014 00:06:15 +0000 (18:06 -0600)
committerJens Axboe <axboe@fb.com>
Fri, 10 Oct 2014 00:06:15 +0000 (18:06 -0600)
We don't want to spam the console with waiting lines.

Signed-off-by: Jens Axboe <axboe@fb.com>
eta.c

diff --git a/eta.c b/eta.c
index 0105cda..baada7b 100644 (file)
--- a/eta.c
+++ b/eta.c
@@ -392,10 +392,9 @@ int calc_thread_status(struct jobs_eta *je, int force)
                } else if (td->runstate == TD_RAMP) {
                        je->nr_running++;
                        je->nr_ramp++;
-               } else if (td->runstate == TD_SETTING_UP) {
-                       je->nr_running++;
+               } else if (td->runstate == TD_SETTING_UP)
                        je->nr_setting_up++;
-               else if (td->runstate < TD_RUNNING)
+               else if (td->runstate < TD_RUNNING)
                        je->nr_pending++;
 
                if (je->elapsed_sec >= 3)