From ed690c00f1460589580c662d808d79e0c494a86b Mon Sep 17 00:00:00 2001 From: Martin Peres Date: Thu, 23 Jul 2015 14:11:29 +0300 Subject: stats/gen_report: Have the trend show a cumulative difference --- stats/gen_report.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'stats') diff --git a/stats/gen_report.py b/stats/gen_report.py index 8f24814..77a60c7 100755 --- a/stats/gen_report.py +++ b/stats/gen_report.py @@ -138,6 +138,7 @@ def getResultsBenchmarkDiffs(benchmark): # Compute a report per application i = 0 + totalDiff = 0 for commit in commits: for result in commit.results: if result.benchmark != benchmark: @@ -151,7 +152,8 @@ def getResultsBenchmarkDiffs(benchmark): diff = 0 prevValue = value - results.append([i, diff]) + totalDiff += diff + results.append([i, totalDiff]) i = i + 1 return results -- cgit v1.2.3