X-Git-Url: https://git.kernel.dk/?p=fio.git;a=blobdiff_plain;f=stat.c;h=beec574d8bd4e80767e683f5631e838d6df853d1;hp=d496e8f968fee2f47d761f4c9e244e6c6ad08744;hb=db84b73bd7b0c3b718596fbeb6a5f940b05a6735;hpb=29eb371b1d2b436e252c6e3e20981d88f7b1cd3f diff --git a/stat.c b/stat.c index d496e8f9..beec574d 100644 --- 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; }