Merge pull request #147 from AdrianLxM/patch-14

fix bgi in autosens
This commit is contained in:
Milos Kozak 2017-01-28 10:32:07 +01:00 committed by GitHub
commit 635c64210f

View file

@ -98,7 +98,7 @@ public class Autosens {
// avgDelta = avgDelta.toFixed(2); // avgDelta = avgDelta.toFixed(2);
IobTotal iob = IobTotal.calulateFromTreatmentsAndTemps(bgTime); IobTotal iob = IobTotal.calulateFromTreatmentsAndTemps(bgTime);
double bgi = Math.round((-iob.activity * sens * 5) * 100) / 100; double bgi = Math.round((-iob.activity * sens * 5) * 100) / 100d;
// bgi = bgi.toFixed(2); // bgi = bgi.toFixed(2);
//console.error(delta); //console.error(delta);
double deviation = delta - bgi; double deviation = delta - bgi;