From 033bbb5119b3135f198b7a6032d484e227d97c69 Mon Sep 17 00:00:00 2001 From: Jens Axboe Date: Mon, 7 May 2012 09:46:40 +0200 Subject: [PATCH] Fix terse bandwidth Off by 1.024 Signed-off-by: Jens Axboe --- stat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stat.c b/stat.c index 542e9106..8c846f66 100644 --- 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; } -- 2.25.1