From 776ae3f4240cda5cd93c18e4492f45f649a161c8 Mon Sep 17 00:00:00 2001 From: AdrianLxM Date: Wed, 16 Aug 2017 23:56:14 +0200 Subject: [PATCH] Overlapping interval - regard first element on cut --- .../info/nightscout/androidaps/data/OverlappingIntervals.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/info/nightscout/androidaps/data/OverlappingIntervals.java b/app/src/main/java/info/nightscout/androidaps/data/OverlappingIntervals.java index 36b06bb7e2..070426cca0 100644 --- a/app/src/main/java/info/nightscout/androidaps/data/OverlappingIntervals.java +++ b/app/src/main/java/info/nightscout/androidaps/data/OverlappingIntervals.java @@ -15,7 +15,7 @@ public class OverlappingIntervals extends Intervals { boolean needToCut = false; long cutTime = 0; - for (int index = rawData.size()-1; index > 0; index--) { //begin with newest + for (int index = rawData.size()-1; index >= 0; index--) { //begin with newest Interval cur = rawData.valueAt(index); if (cur.isEndingEvent()){ needToCut = true;