restrict DIA for expectedDelta

This commit is contained in:
AdrianLxM 2017-08-16 14:17:28 +02:00
parent e1d2c557af
commit 5fc63d8f16
2 changed files with 2 additions and 2 deletions

View file

@ -208,7 +208,7 @@ public class DetermineBasalAdapterAMAJS {
mProfile = new V8Object(mV8rt);
mProfile.add("max_iob", maxIob);
mProfile.add("dia", profile.getDia());
mProfile.add("dia", Math.min(profile.getDia(), 3d));
mProfile.add("type", "current");
mProfile.add("max_daily_basal", profile.getMaxDailyBasal());
mProfile.add("max_basal", maxBasal);

View file

@ -231,7 +231,7 @@ public class DetermineBasalAdapterMAJS {
String units = profile.getUnits();
mProfile.add("max_iob", maxIob);
mProfile.add("dia", profile.getDia());
mProfile.add("dia", Math.min(profile.getDia(), 3d));
mProfile.add("type", "current");
mProfile.add("max_daily_basal", profile.getMaxDailyBasal());
mProfile.add("max_basal", maxBasal);