From 96787ff4ac1973967eaeeccd932350f4f01a243f Mon Sep 17 00:00:00 2001 From: Greg Fitzgerald Date: Wed, 22 Aug 2018 16:09:53 -0600 Subject: [PATCH] Use builtin sum --- scripts/perf-stats.py | 6 ------ 1 file changed, 6 deletions(-) diff --git a/scripts/perf-stats.py b/scripts/perf-stats.py index b91a883c9..8697dcdb3 100755 --- a/scripts/perf-stats.py +++ b/scripts/perf-stats.py @@ -35,12 +35,6 @@ with open(sys.argv[1]) as fh: stages_data[counter]['last_ts'] = x['now'] stages_data[counter]['last_count'] = x['counts'] -def sum(data): - total = 0 - for x in data: - total += x - return total - for stage in stages_data.keys(): stages_data[stage]['data'].sort() #mean_index = stages_data[stage]['count'] / 2