projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
91c0e7c
)
stat: set kb/unit_base, if not already set
author
Jens Axboe
<axboe@fb.com>
Mon, 13 Oct 2014 16:07:45 +0000
(10:07 -0600)
committer
Jens Axboe
<axboe@fb.com>
Mon, 13 Oct 2014 16:07:45 +0000
(10:07 -0600)
Signed-off-by: Jens Axboe <axboe@fb.com>
stat.c
patch
|
blob
|
blame
|
history
diff --git
a/stat.c
b/stat.c
index 77e389cb1f7f85baa0c600a56adfc5e32c0274f7..03dc45880ed73b9a5cb051a59be37cfc29db1e78 100644
(file)
--- a/
stat.c
+++ b/
stat.c
@@
-1077,6
+1077,10
@@
void sum_group_stats(struct group_run_stats *dst, struct group_run_stats *src)
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)