projects
/
fio.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
stat: fix calculation of bw and iops statistics based on samples
[fio.git]
/
stat.c
diff --git
a/stat.c
b/stat.c
index 9d93dcd17040d6326a1c8ea9c0226d7dfd363bb6..cc1c360e95a522960652e251e4436f3cb4deb66b 100644
(file)
--- a/
stat.c
+++ b/
stat.c
@@
-3106,7
+3106,7
@@
static int __add_samples(struct thread_data *td, struct timespec *parent_tv,
stat_io_bytes[ddir] = this_io_bytes[ddir];
}
-
timespec_add_msec(parent_tv, avg_time)
;
+
*parent_tv = *t
;
if (needs_lock)
__td_io_u_unlock(td);