Commit 6773423b authored by Arnaud Fontaine's avatar Arnaud Fontaine

error_sum is meaningful for generating test reports (was removed in f31c9ab4)

parent ab904750
......@@ -44,6 +44,7 @@ class BenchmarkResultStatistic(object):
self.minimum = sys.maxint
self.maximum = -1
self.n = 0
self.error_sum = 0
# For calculating the mean
self._value_sum = 0
......@@ -53,6 +54,10 @@ class BenchmarkResultStatistic(object):
self._mean = 0
def add(self, value):
if value < 0:
self.error_sum += 1
return
if value < self.minimum:
self.minimum = value
if value > self.maximum:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment