mirror of
https://github.com/bckelley/cgm-remote-monitor.git
synced 2026-08-24 03:14:12 -05:00
@@ -176,8 +176,8 @@ hourlystats.report = function report_hourlystats(datastorage, sorteddaystoshow,
|
||||
var net = positive + negative;
|
||||
totalPositive[h] += positive;
|
||||
totalNegative[h] += negative;
|
||||
if (Math.abs(positive) > Math.abs(negative)) positivesCount[h] += 1;
|
||||
else negativesCount[h] += 1;
|
||||
if (positive + negative > 0) positivesCount[h] += 1;
|
||||
else if (positive + negative < 0) negativesCount[h] += 1;
|
||||
totalNet[h] += net;
|
||||
var color = Math.abs(net) < 0.019 ? "black" : (net < 0 ? "red" : "lightgreen");
|
||||
$('<td>' +
|
||||
|
||||
Reference in New Issue
Block a user