Skip to content

Commit

Permalink
Fixing Timeline view to work with baseline and benchmark description.
Browse files Browse the repository at this point in the history
  • Loading branch information
daniloaf committed May 4, 2011
1 parent c01f776 commit a095c75
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions speedcenter/codespeed/views.py
Expand Up @@ -395,9 +395,9 @@ def gettimelinedata(request):
else:
# determine start and end revision (x axis) from longest data series
results = []
for exe in timeline['branches'][branch]['executables']:
if len(timeline['branches'][branch]['executables'][exe]) > len(results):
results = timeline['branches'][branch]['executables'][exe]
for exe in timeline['branches'][branch]:
if len(timeline['branches'][branch][exe]) > len(results):
results = timeline['branches'][branch][exe]
end = results[0][0]
start = results[len(results)-1][0]
timeline['baseline'] = [
Expand Down
2 changes: 1 addition & 1 deletion speedcenter/templates/codespeed/timeline.html
Expand Up @@ -71,7 +71,7 @@
$("#plotgrid").html('<div id="plot"></div><div id="plotdescription"></div>');

if (data['benchmark_description']) {
$("#plotdescription").html('<p class="note"><i>' + data[branch]['benchmark'] + '</i>: ' + data[branch]['benchmark_description'] + '</p>');
$("#plotdescription").html('<p class="note"><i>' + data['benchmark'] + '</i>: ' + data['benchmark_description'] + '</p>');
}

if (series.length > 4) {
Expand Down

0 comments on commit a095c75

Please sign in to comment.