Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Fixed bug where peak time usage would not calculate

  • Loading branch information...
commit 13a5a77ca9b7a4fc3d6765bf18091f614187ac1e 1 parent 33de398
Matt McKenna authored

Showing 1 changed file with 2 additions and 2 deletions. Show diff stats Hide diff stats

  1. +2 2 js/app.js
4 js/app.js
@@ -142,7 +142,7 @@ app.parseGreenButtonXml = function(xml) {
142 142
143 143 // Find address, convert to text
144 144 var address = $($(app.xml).find('entry > title')[0]).text();
145   - $('#address').text('My Address:' + address);
  145 + $('#address').text(address);
146 146
147 147 app.readings = [];
148 148 app.theoReadings = [];
@@ -280,7 +280,7 @@ app.getTotals = function() {
280 280 var value = app.currentReadings[i][app.readingType];
281 281 var theoValue = app.theoReadings[i][app.readingType];
282 282 if (start < app.xMin) continue;
283   - if (start > app.xMax) break;
  283 + if (start > app.xMax) continue;
284 284 app.totalValue += value;
285 285 app.totalTheoValue += theoValue;
286 286

0 comments on commit 13a5a77

Please sign in to comment.
Something went wrong with that request. Please try again.