Calculate activityContrib for TempBasal
This commit is contained in:
parent
82443bc8ab
commit
8bdc86f359
|
@ -97,6 +97,7 @@ public class TempBasal {
|
|||
|
||||
Iob aIOB = tempBolusPart.iobCalc(time, profile.getDia());
|
||||
result.basaliob += aIOB.iobContrib;
|
||||
result.activity += aIOB.activityContrib;
|
||||
Double dia_ago = time.getTime() - profile.getDia() * 60 * 60 * 1000;
|
||||
if (date > dia_ago && date <= time.getTime()) {
|
||||
result.netbasalinsulin += tempBolusPart.insulin;
|
||||
|
|
Loading…
Reference in a new issue