summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJens Axboe <axboe@fb.com>2016-01-20 17:45:13 -0700
committerJens Axboe <axboe@fb.com>2016-01-20 17:45:13 -0700
commit13978e86afb08a0453551a88680700fcad328522 (patch)
tree7edfd64bebe5a87093bf1984403b26d1c175c310
parent2baadb02756d2abaf7ba0fd8bb1cfb6b83f887c1 (diff)
downloadfio-13978e86afb08a0453551a88680700fcad328522.tar.gz
fio-13978e86afb08a0453551a88680700fcad328522.tar.bz2
init: increment stat count if parent == default thread
We skip doing the stat increment if group_reporting is set, but that means we can end up with stat_number == 0. That isn't correct, increment for group_reporting as well, but only if the parent is the default thread. That means we still won't do it for sub-jobs. Signed-off-by: Jens Axboe <axboe@fb.com>
-rw-r--r--init.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/init.c b/init.c
index 77cf9f2a..98c53edd 100644
--- a/init.c
+++ b/init.c
@@ -493,7 +493,7 @@ static struct thread_data *get_new_job(int global, struct thread_data *parent,
if (jobname)
td->o.name = strdup(jobname);
- if (!parent->o.group_reporting)
+ if (!parent->o.group_reporting || parent == &def_thread)
stat_number++;
set_cmd_options(td);