From: Jens Axboe Date: Tue, 28 Feb 2012 07:20:26 +0000 (+0100) Subject: Really fix IOPS logging X-Git-Tag: fio-2.0.5~1 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=421f4a827c192e3e14bfe9973d79a2e4fa8d8792 Really fix IOPS logging Commit 9602d8df had a bug where it mistakenly stored the bytes last seen when doing an IOPS log entry, instead of the blocks last seen. Reported-by: Bill Hooper Signed-off-by: Jens Axboe --- diff --git a/stat.c b/stat.c index a02c5829..fa9af7c7 100644 --- a/stat.c +++ b/stat.c @@ -1343,7 +1343,7 @@ void add_iops_sample(struct thread_data *td, enum fio_ddir ddir, if (td->iops_log) add_log_sample(td, td->iops_log, iops, ddir, 0); - td->stat_io_bytes[ddir] = td->this_io_bytes[ddir]; + td->stat_io_blocks[ddir] = td->this_io_blocks[ddir]; } fio_gettime(&td->iops_sample_time, NULL);