Merge pull request #365 from MilosKozak/dia-expecteddelta-fix

Restrict DIA for expectedDelta
This commit is contained in:
Milos Kozak 2017-08-16 18:11:37 +02:00 committed by GitHub
commit 35db28f013
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);