From b9e1b49128450bcfd792165354b98026e3ac2734 Mon Sep 17 00:00:00 2001 From: Shaohua Li Date: Wed, 3 Apr 2013 08:40:17 +0200 Subject: [PATCH 1/1] 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 --- stat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) -- 2.25.1