]> code.ossystems Code Review - openembedded-core.git/commitdiff
oe-build-perf-report: use correct x-axis max value in html charts
authorMarkus Lehtonen <markus.lehtonen@linux.intel.com>
Mon, 15 May 2017 11:18:42 +0000 (14:18 +0300)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 23 May 2017 16:44:00 +0000 (17:44 +0100)
Signed-off-by: Markus Lehtonen <markus.lehtonen@linux.intel.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
scripts/oe-build-perf-report

index d460caae189021e7be84bdcfc12d93975a8b2351..6f0b84f9ece39495a745483d206f94a8b7702f0c 100755 (executable)
@@ -373,7 +373,7 @@ def print_html_report(data, id_comp):
 
     # Chart options
     chart_opts = {'haxis': {'min': get_data_item(data[0][0], 'layers.meta.commit_count'),
-                            'max': get_data_item(data[0][0], 'layers.meta.commit_count')}
+                            'max': get_data_item(data[-1][0], 'layers.meta.commit_count')}
                  }
 
     print(html.template.render(metadata=metadata, test_data=tests, chart_opts=chart_opts))