HOWTO: fix the v3 terse output definition
[fio.git] / stat.c
diff --git a/stat.c b/stat.c
index d496e8f968fee2f47d761f4c9e244e6c6ad08744..beec574d8bd4e80767e683f5631e838d6df853d1 100644 (file)
--- a/stat.c
+++ b/stat.c
@@ -483,7 +483,7 @@ static void show_ddir_status(struct group_run_stats *rs, struct thread_stat *ts,
                }
 
                if (rs->agg[ddir]) {
-                       p_of_agg = mean * 100 / (double) rs->agg[ddir];
+                       p_of_agg = mean * 100 / (double) (rs->agg[ddir] / 1024);
                        if (p_of_agg > 100.0)
                                p_of_agg = 100.0;
                }