include smb into basal iob
This commit is contained in:
parent
755c82898c
commit
4e5a374b9c
|
@ -64,9 +64,9 @@ public class IobTotal {
|
|||
result.iob = bolusIOB.iob + basalIob.basaliob;
|
||||
result.activity = bolusIOB.activity + basalIob.activity;
|
||||
result.bolussnooze = bolusIOB.bolussnooze;
|
||||
result.basaliob = basalIob.basaliob;
|
||||
result.netbasalinsulin = basalIob.netbasalinsulin;
|
||||
result.hightempinsulin = basalIob.hightempinsulin;
|
||||
result.basaliob = bolusIOB.basaliob + basalIob.basaliob;
|
||||
result.netbasalinsulin = bolusIOB.netbasalinsulin + basalIob.netbasalinsulin;
|
||||
result.hightempinsulin = basalIob.hightempinsulin + bolusIOB.hightempinsulin;
|
||||
result.microBolusInsulin = bolusIOB.microBolusInsulin + basalIob.microBolusInsulin;
|
||||
result.microBolusIOB = bolusIOB.microBolusIOB + basalIob.microBolusIOB;
|
||||
result.lastBolusTime = bolusIOB.lastBolusTime;
|
||||
|
|
|
@ -202,8 +202,11 @@ public class TreatmentsPlugin implements PluginBase, TreatmentsInterface {
|
|||
} else {
|
||||
if (t.date > total.lastBolusTime)
|
||||
total.lastBolusTime = t.date;
|
||||
total.basaliob += t.insulin;
|
||||
total.basaliob += tIOB.iobContrib;
|
||||
total.microBolusIOB += tIOB.iobContrib;
|
||||
total.hightempinsulin += t.insulin;
|
||||
total.netbasalinsulin += t.insulin;
|
||||
total.microBolusInsulin += t.insulin;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue