Revert "fix 1000 vs kb_base confusion in show_run_stats."
authorJens Axboe <jaxboe@fusionio.com>
Fri, 25 Jun 2010 12:33:37 +0000 (14:33 +0200)
committerJens Axboe <jaxboe@fusionio.com>
Fri, 25 Jun 2010 12:33:37 +0000 (14:33 +0200)
This reverts commit 1f53e9d84573b1f9b9a23ad3ac4ef3d312d59c78.

The conversion is from msec to sec, so the 1000 factor
was correct.

Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
stat.c

diff --git a/stat.c b/stat.c
index 0f259d2..a79c7ef 100644 (file)
--- 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];
        }
 
        /*