stat: fix typo
authorJens Axboe <axboe@kernel.dk>
Tue, 7 Feb 2012 15:42:43 +0000 (16:42 +0100)
committerJens Axboe <axboe@kernel.dk>
Tue, 7 Feb 2012 15:42:43 +0000 (16:42 +0100)
Signed-off-by: Jens Axboe <axboe@kernel.dk>
stat.c

diff --git a/stat.c b/stat.c
index 40e3b1bade76d576849f7b497a344f1f8653b183..7e3b97966c0b7754cdb10333ffa341a0adf26a5e 100644 (file)
--- a/stat.c
+++ b/stat.c
@@ -443,7 +443,7 @@ static void show_ddir_status(struct group_run_stats *rs, struct thread_stat *ts,
                double p_of_agg = 100.0;
                const char *bw_str = "KB";
 
-               if (rs->agg[dir]) {
+               if (rs->agg[ddir]) {
                        p_of_agg = mean * 100 / (double) rs->agg[ddir];
                        if (p_of_agg > 100.0)
                                p_of_agg = 100.0;