make now part of the past
This commit is contained in:
parent
da96b2d87c
commit
b5a6ef2ecc
1 changed files with 1 additions and 1 deletions
|
@ -415,7 +415,7 @@ public class IobCobCalculatorPlugin extends PluginBase {
|
||||||
displayCob = autosensData.cob;
|
displayCob = autosensData.cob;
|
||||||
for (Treatment treatment : treatments) {
|
for (Treatment treatment : treatments) {
|
||||||
if (IobCobCalculatorPlugin.roundUpTime(treatment.date) > IobCobCalculatorPlugin.roundUpTime(autosensData.time)
|
if (IobCobCalculatorPlugin.roundUpTime(treatment.date) > IobCobCalculatorPlugin.roundUpTime(autosensData.time)
|
||||||
&& treatment.date < now && treatment.carbs > 0) {
|
&& treatment.date <= now && treatment.carbs > 0) {
|
||||||
displayCob += treatment.carbs;
|
displayCob += treatment.carbs;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue