stat: fixing bw_agg reporting
authorErwan Velu <erwan.velu@enovance.com>
Wed, 2 Apr 2014 08:36:40 +0000 (10:36 +0200)
committerErwan Velu <erwan.velu@enovance.com>
Wed, 2 Apr 2014 08:36:40 +0000 (10:36 +0200)
It was wrongly set to the mean value instead of the agg one.

stat.c

diff --git a/stat.c b/stat.c
index f84ce5300f605736b5ef8b9556286792b2b53cd8..d61692342d722db10d4d6f95b76529158fc6f653 100644 (file)
--- a/stat.c
+++ b/stat.c
@@ -769,7 +769,7 @@ static void add_ddir_status_json(struct thread_stat *ts,
        }
        json_object_add_value_int(dir_object, "bw_min", min);
        json_object_add_value_int(dir_object, "bw_max", max);
        }
        json_object_add_value_int(dir_object, "bw_min", min);
        json_object_add_value_int(dir_object, "bw_max", max);
-       json_object_add_value_float(dir_object, "bw_agg", mean);
+       json_object_add_value_float(dir_object, "bw_agg", p_of_agg);
        json_object_add_value_float(dir_object, "bw_mean", mean);
        json_object_add_value_float(dir_object, "bw_dev", dev);
 }
        json_object_add_value_float(dir_object, "bw_mean", mean);
        json_object_add_value_float(dir_object, "bw_dev", dev);
 }