From: Jens Axboe Date: Wed, 4 Jun 2008 08:35:25 +0000 (+0200) Subject: Missing time store in rwmix switch X-Git-Tag: fio-1.21-rc7~1 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=6162f5249479e4be69bcd0c0bf09d1c09ea99523;p=fio.git Missing time store in rwmix switch Caused missing display of either read or write direction for a mixed workload. Signed-off-by: Jens Axboe --- diff --git a/io_u.c b/io_u.c index 57b991ae..74c3295b 100644 --- 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; }