commit | c2d6668d35e9bdc0a56311fcc769f8eb00f62727 | [log] [tgz] |
---|---|---|
author | Jens Axboe <axboe@fb.com> | Mon Oct 13 10:07:45 2014 -0600 |
committer | Mohamad Ayyash <mkayyash@google.com> | Fri Mar 06 17:57:24 2015 -0800 |
tree | 35e98db774a0db9798d5b6500adb9df137ae0e32 | |
parent | 453545a274e8294535be6ebb47879912970ed80a [diff] [blame] |
stat: set kb/unit_base, if not already set Signed-off-by: Jens Axboe <axboe@fb.com>
diff --git a/stat.c b/stat.c index 77e389c..03dc458 100644 --- a/stat.c +++ b/stat.c
@@ -1077,6 +1077,10 @@ dst->agg[i] += src->agg[i]; } + if (!dst->kb_base) + dst->kb_base = src->kb_base; + if (!dst->unit_base) + dst->unit_base = src->unit_base; } void sum_thread_stats(struct thread_stat *dst, struct thread_stat *src, int nr)