From: Shaohua Li Date: Wed, 3 Apr 2013 06:40:17 +0000 (+0200) Subject: Fixup json bandwidth output X-Git-Tag: fio-2.0.15~3 X-Git-Url: https://git.kernel.dk/?p=fio.git;a=commitdiff_plain;h=b9e1b49128450bcfd792165354b98026e3ac2734;hp=a03fb65f4e5d657ee3bb68309cfa70ae2d5bc44b Fixup json bandwidth output The final version sent in for inclusion had the check mixed up, so it doesn't output bandwidth unless the calculation failed. Signed-off-by: Jens Axboe --- diff --git a/stat.c b/stat.c index 59f37184..38c5d023 100644 --- a/stat.c +++ b/stat.c @@ -775,7 +775,7 @@ static void add_ddir_status_json(struct thread_stat *ts, if (ovals) free(ovals); - if (!calc_lat(&ts->bw_stat[ddir], &min, &max, &mean, &dev)) { + if (calc_lat(&ts->bw_stat[ddir], &min, &max, &mean, &dev)) { if (rs->agg[ddir]) { p_of_agg = mean * 100 / (double) rs->agg[ddir]; if (p_of_agg > 100.0)