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 0f259d273bd48e04e8f7752e522ff44bd72a1a3c..a79c7ef29da473567debc712f3c6909b077f7a13 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])
                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])
                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];
        }
 
        /*
        }
 
        /*