summaryrefslogtreecommitdiff
path: root/stat.c
diff options
context:
space:
mode:
Diffstat (limited to 'stat.c')
-rw-r--r--stat.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/stat.c b/stat.c
index 26125fad..13e7ff25 100644
--- a/stat.c
+++ b/stat.c
@@ -1717,8 +1717,11 @@ void sum_thread_stats(struct thread_stat *dst, struct thread_stat *src,
dst->total_complete += src->total_complete;
dst->nr_zone_resets += src->nr_zone_resets;
- for (l = 0; l < ARRAY_SIZE(dst->step_stats); l++)
+ for (l = 0; l < ARRAY_SIZE(dst->step_stats); l++) {
+ if (!__lat_ts_has_stats(src, l))
+ continue;
sum_lat_step_stats(&dst->step_stats[l], &src->step_stats[l], first);
+ }
}
void init_group_run_stat(struct group_run_stats *gs)