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