From: Jens Axboe Date: Mon, 7 May 2012 07:46:40 +0000 (+0200) Subject: Fix terse bandwidth X-Git-Tag: gfio-0.1~2^2 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=033bbb5119b3135f198b7a6032d484e227d97c69;p=fio.git Fix terse bandwidth Off by 1.024 Signed-off-by: Jens Axboe --- 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; }