From 7b00adca4212b4bc5586814eee80f3b98c3f59c6 Mon Sep 17 00:00:00 2001 From: Martin Peres Date: Mon, 27 Jul 2015 14:22:50 +0300 Subject: stats/gen_report/trend: stop the line when missing results --- stats/gen_report.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'stats') diff --git a/stats/gen_report.py b/stats/gen_report.py index 4e10bda..310a6e5 100755 --- a/stats/gen_report.py +++ b/stats/gen_report.py @@ -156,6 +156,7 @@ def getResultsBenchmarkDiffs(benchmark): i = 0 origValue = -1 for commit in commits: + resultFound = False for result in commit.results: if result.benchmark != benchmark: continue @@ -168,6 +169,10 @@ def getResultsBenchmarkDiffs(benchmark): diff = 0 results.append([i, diff]) + resultFound = True + + if not resultFound: + results.append([i, NaN]) i = i + 1 return results -- cgit v1.2.3