From: Jens Axboe Date: Fri, 25 Jun 2010 12:33:37 +0000 (+0200) Subject: Revert "fix 1000 vs kb_base confusion in show_run_stats." X-Git-Tag: fio-1.41.5~2 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=4cf1abc34ff1cc8aaa2e02e3aaf919681b717c91;hp=c9c20f05373375d029f63225aea86fe6e3829e96;ds=sidebyside Revert "fix 1000 vs kb_base confusion in show_run_stats." This reverts commit 1f53e9d84573b1f9b9a23ad3ac4ef3d312d59c78. The conversion is from msec to sec, so the 1000 factor was correct. Signed-off-by: Jens Axboe --- diff --git a/stat.c b/stat.c index 0f259d27..a79c7ef2 100644 --- a/stat.c +++ b/stat.c @@ -658,9 +658,9 @@ void show_run_stats(void) max_run[1] = rs->max_run[1]; if (rs->max_run[0]) - rs->agg[0] = (rs->io_kb[0] * rs->kb_base) / max_run[0]; + rs->agg[0] = (rs->io_kb[0] * 1000) / max_run[0]; if (rs->max_run[1]) - rs->agg[1] = (rs->io_kb[1] * rs->kb_base) / max_run[1]; + rs->agg[1] = (rs->io_kb[1] * 1000) / max_run[1]; } /*