[PATCH] perf: Util.py add_stats() computes the mean correctly

2017-08-08 Thread Dima Kogan
add_stats() is a utility function for perf scripts to accumulate a value, and keep track of some statistics. The mean is one of the statistics it keeps track of, but due to a bug, this wasn't being computed properly. This patch makes the computation correct Signed-off-by: Dima Kogan

[PATCH] perf: Util.py add_stats() computes the mean correctly

2017-08-08 Thread Dima Kogan
add_stats() is a utility function for perf scripts to accumulate a value, and keep track of some statistics. The mean is one of the statistics it keeps track of, but due to a bug, this wasn't being computed properly. This patch makes the computation correct Signed-off-by: Dima Kogan ---