Skip to content
Closed
Prev Previous commit
Update client.js
  • Loading branch information
Dexcgm committed Jun 21, 2014
commit 72d271bdbbe3c188973cd0c3f6f24a3a34b1803c
3 changes: 2 additions & 1 deletion js/client.js
Original file line number Diff line number Diff line change
Expand Up @@ -594,7 +594,8 @@
// change the next line so that it uses the prediction if the signal gets lost (max 1/2 hr)
if (d[0].length) {
var bg = scaleBg(d[0][d[0].length - 1].y);
var current = d[0][d[0].length - 1];
$('#currentBG').text(bg);
$('#bgValue').text(bg);
var secsSinceLast = (Date.now() - new Date(current.x).getTime()) / 1000;
var currentBG = current.y;

Expand Down