commit | 033bbb5119b3135f198b7a6032d484e227d97c69 | [log] [tgz] |
---|---|---|
author | Jens Axboe <axboe@kernel.dk> | Mon May 07 09:46:40 2012 +0200 |
committer | Jens Axboe <axboe@kernel.dk> | Mon May 07 09:46:40 2012 +0200 |
tree | c87eb7a223e65859412fb67c35a99cc413e84523 | |
parent | e2ea5c7407e37c9ea986df75fbf74fd60874b87b [diff] [blame] |
Fix terse bandwidth Off by 1.024 Signed-off-by: Jens Axboe <axboe@kernel.dk>
diff --git a/stat.c b/stat.c index 542e910..8c846f6 100644 --- a/stat.c +++ b/stat.c
@@ -613,7 +613,7 @@ 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; }