Fix terse bandwidth
authorJens Axboe <axboe@kernel.dk>
Mon, 7 May 2012 07:46:40 +0000 (09:46 +0200)
committerJens Axboe <axboe@kernel.dk>
Mon, 7 May 2012 07:46:40 +0000 (09:46 +0200)
Off by 1.024

Signed-off-by: Jens Axboe <axboe@kernel.dk>
stat.c

diff --git a/stat.c b/stat.c
index 542e910..8c846f6 100644 (file)
--- a/stat.c
+++ b/stat.c
@@ -613,7 +613,7 @@ static void show_ddir_status_terse(struct thread_stat *ts,
        if (ts->runtime[ddir]) {
                uint64_t runt = ts->runtime[ddir];
 
-               bw = ts->io_bytes[ddir] / runt;
+               bw = ((1000 * ts->io_bytes[ddir]) / runt) / 1024;
                iops = (1000 * (uint64_t) ts->total_io_u[ddir]) / runt;
        }