summaryrefslogtreecommitdiff
path: root/stats
diff options
context:
space:
mode:
authorMartin Peres <martin.peres@linux.intel.com>2015-07-27 14:22:50 +0300
committerMartin Peres <martin.peres@linux.intel.com>2015-07-27 14:55:20 +0300
commit7b00adca4212b4bc5586814eee80f3b98c3f59c6 (patch)
treece5024fdc30fedd11017ac740ccb8d7429faa847 /stats
parent7df3cbfe4117132d1595bba9bc8d882e1db11e27 (diff)
stats/gen_report/trend: stop the line when missing results
Diffstat (limited to 'stats')
-rwxr-xr-xstats/gen_report.py5
1 files changed, 5 insertions, 0 deletions
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