From d7d3b49b31ad55218c8865d0185d6b5552306fbc Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Mon, 12 Mar 2007 08:02:10 +0100 Subject: [PATCH] Clear ->rate_bytes on do_io() loop We don't do rates across loops, so remember to clear ->rate_bytes when we start a new loop. Problem report from "Ananiev, Leonid I" Signed-off-by: Jens Axboe --- fio.c | 1 + 1 file changed, 1 insertion(+) diff --git a/fio.c b/fio.c index 36dde3a6..cc65e3d0 100644 --- a/fio.c +++ b/fio.c @@ -636,6 +636,7 @@ static int clear_io_state(struct thread_data *td) td->ts.stat_io_bytes[0] = td->ts.stat_io_bytes[1] = 0; td->this_io_bytes[0] = td->this_io_bytes[1] = 0; td->zone_bytes = 0; + td->rate_bytes = 0; td->last_was_sync = 0; -- 2.25.1