Merge pull request #927 from MilosKozak/lastBolusTime
lastBolusTime - only treatments with insulin
This commit is contained in:
commit
5df59d8fe3
|
@ -175,7 +175,7 @@ public class TreatmentsPlugin extends PluginBase implements TreatmentsInterface
|
||||||
Iob tIOB = t.iobCalc(time, dia);
|
Iob tIOB = t.iobCalc(time, dia);
|
||||||
total.iob += tIOB.iobContrib;
|
total.iob += tIOB.iobContrib;
|
||||||
total.activity += tIOB.activityContrib;
|
total.activity += tIOB.activityContrib;
|
||||||
if (t.date > total.lastBolusTime)
|
if (t.insulin > 0 && t.date > total.lastBolusTime)
|
||||||
total.lastBolusTime = t.date;
|
total.lastBolusTime = t.date;
|
||||||
if (!t.isSMB) {
|
if (!t.isSMB) {
|
||||||
// instead of dividing the DIA that only worked on the bilinear curves,
|
// instead of dividing the DIA that only worked on the bilinear curves,
|
||||||
|
|
Loading…
Reference in a new issue