From 75b53cfc0db285a7e46bf6321b4d42bd7c094f2a Mon Sep 17 00:00:00 2001 From: Milos Kozak Date: Thu, 19 Jan 2017 14:35:16 +0100 Subject: [PATCH] iob calc fix --- .../androidaps/plugins/TempBasals/TempBasalsPlugin.java | 1 + 1 file changed, 1 insertion(+) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/TempBasals/TempBasalsPlugin.java b/app/src/main/java/info/nightscout/androidaps/plugins/TempBasals/TempBasalsPlugin.java index e79e07c816..9565f0ca6a 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/TempBasals/TempBasalsPlugin.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/TempBasals/TempBasalsPlugin.java @@ -180,6 +180,7 @@ public class TempBasalsPlugin implements PluginBase, TempBasalsInterface { if (useExtendedBoluses) { for (Integer pos = 0; pos < extendedBoluses.size(); pos++) { TempBasal t = extendedBoluses.get(pos); + if (t.timeStart.getTime() > time) continue; IobTotal calc = t.iobCalc(now); total.plus(calc); }