Commit 2692b61f authored by Leigh B Stoller's avatar Leigh B Stoller

Minor fix.

parent bbf42391
...@@ -444,6 +444,13 @@ window.DrawResHistoryGraph = (function () ...@@ -444,6 +444,13 @@ window.DrawResHistoryGraph = (function ()
break; break;
} }
} }
if (i == history.length) {
// All the entries are before the start, we need to do the
// backup entry as above.
backup = true;
i--;
console.info("added initial backup entry at ", stamp, i);
}
for (; i < history.length; i++) { for (; i < history.length; i++) {
var record = history[i]; var record = history[i];
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment