From 421f4a827c192e3e14bfe9973d79a2e4fa8d8792 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Tue, 28 Feb 2012 08:20:26 +0100 Subject: [PATCH] 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 --- stat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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); -- 2.25.1