iob calc fix

This commit is contained in:
Milos Kozak 2017-01-19 14:35:16 +01:00
parent 07c9a21ff9
commit 75b53cfc0d

View file

@ -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);
}