Round up to be sure.
This commit is contained in:
parent
60fbb1eeba
commit
da96b2d87c
1 changed files with 2 additions and 1 deletions
|
@ -414,7 +414,8 @@ public class IobCobCalculatorPlugin extends PluginBase {
|
||||||
if (autosensData != null) {
|
if (autosensData != null) {
|
||||||
displayCob = autosensData.cob;
|
displayCob = autosensData.cob;
|
||||||
for (Treatment treatment : treatments) {
|
for (Treatment treatment : treatments) {
|
||||||
if (IobCobCalculatorPlugin.roundUpTime(treatment.date) > autosensData.time && treatment.date < now && treatment.carbs > 0) {
|
if (IobCobCalculatorPlugin.roundUpTime(treatment.date) > IobCobCalculatorPlugin.roundUpTime(autosensData.time)
|
||||||
|
&& treatment.date < now && treatment.carbs > 0) {
|
||||||
displayCob += treatment.carbs;
|
displayCob += treatment.carbs;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue