Skip to content
This repository has been archived by the owner on Mar 15, 2018. It is now read-only.

Commit

Permalink
fix up table range so the first row isn't always zero (bug 696146)
Browse files Browse the repository at this point in the history
  • Loading branch information
potch committed Oct 24, 2011
1 parent fce11a9 commit 12b7d64
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions media/js/impala/stats/table.js
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,9 @@
newHead += '</th>';
});

var d = range.end.clone();
for (; d.isAfter(range.start); d.backward('1 day')) {
var d = range.end.clone().backward('1 day'),
lastRowDate = range.start.clone().backward('1 day');
for (; lastRowDate.isBefore(d); d.backward('1 day')) {
row = data[d.iso()] || {};
newBody += '<tr>';
newBody += '<th>' + Highcharts.dateFormat('%a, %b %e, %Y', Date.iso(d)) + "</th>";
Expand Down

0 comments on commit 12b7d64

Please sign in to comment.