projects
/
fio.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5f42100
)
Missing time store in rwmix switch
author
Jens Axboe
<jens.axboe@oracle.com>
Wed, 4 Jun 2008 08:35:25 +0000
(10:35 +0200)
committer
Jens Axboe
<jens.axboe@oracle.com>
Wed, 4 Jun 2008 08:35:25 +0000
(10:35 +0200)
Caused missing display of either read or write direction for a mixed
workload.
Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
io_u.c
patch
|
blob
|
blame
|
history
diff --git
a/io_u.c
b/io_u.c
index 57b991ae2aa050f3a97191ed7ec3cb8decc4f59f..74c3295b8f1157ee6e9d9cb6d45076bad8082259 100644
(file)
--- a/
io_u.c
+++ b/
io_u.c
@@
-319,8
+319,10
@@
static enum fio_ddir get_rw_ddir(struct thread_data *td)
max_bytes = td->this_io_bytes[ddir];
if (max_bytes >=
(td->o.size * td->o.rwmix[ddir] / 100)) {
- if (!td->rw_end_set[ddir])
+ if (!td->rw_end_set[ddir])
{
td->rw_end_set[ddir] = 1;
+ fio_gettime(&td->rw_end[ddir], NULL);
+ }
ddir ^= 1;
}