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 542e910606ff16043547aa57272bca45aa002b90..8c846f666f431e9a80d5930f1939df42f32020c4 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;
        }