X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=eta.c;h=1f67301a902124e6b922ca980bc5796928525eb3;hp=075ce8c81a010b1e57e0a7d31d5c8f7259b69a47;hb=9c6f63166eaecc13e4b2ca1d80cc1b5e6185fd43;hpb=39ab7da23768081db50b0026e0c2a8e38752e7a4 diff --git a/eta.c b/eta.c index 075ce8c8..1f67301a 100644 --- a/eta.c +++ b/eta.c @@ -78,6 +78,7 @@ static void check_str_update(struct thread_data *td) c = 'C'; break; case TD_INITIALIZED: + case TD_SETTING_UP: c = 'I'; break; case TD_NOT_CREATED: @@ -318,7 +319,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_RUNNING) + } else if (td->runstate == TD_SETTING_UP) + je->nr_running++; + else if (td->runstate < TD_RUNNING) je->nr_pending++; if (je->elapsed_sec >= 3)