fix 1000 vs kb_base confusion in show_run_stats.
authorYAMAMOTO Takashi <yamamoto@valinux.co.jp>
Wed, 23 Jun 2010 12:46:35 +0000 (14:46 +0200)
committerJens Axboe <jaxboe@fusionio.com>
Wed, 23 Jun 2010 12:46:35 +0000 (14:46 +0200)
Signed-off-by: Jens Axboe <jaxboe@fusionio.com>
stat.c

diff --git a/stat.c b/stat.c
index 9d1f66a..143325a 100644 (file)
--- a/stat.c
+++ b/stat.c
@@ -635,9 +635,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] * 1000) / max_run[0];
+                       rs->agg[0] = (rs->io_kb[0] * rs->kb_base) / max_run[0];
                if (rs->max_run[1])
-                       rs->agg[1] = (rs->io_kb[1] * 1000) / max_run[1];
+                       rs->agg[1] = (rs->io_kb[1] * rs->kb_base) / max_run[1];
        }
 
        /*