From 79cafc14f50a9f0f70bf7fef3d5197d86e43b5f3 Mon Sep 17 00:00:00 2001 From: TebbeUbben Date: Thu, 28 May 2020 15:24:53 +0200 Subject: [PATCH] Insight: Log end events five seconds earlier --- .../androidaps/plugins/pump/insight/LocalInsightPlugin.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/pump/insight/LocalInsightPlugin.java b/app/src/main/java/info/nightscout/androidaps/plugins/pump/insight/LocalInsightPlugin.java index f8d1cf1ce5..1b8331ac41 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/pump/insight/LocalInsightPlugin.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/pump/insight/LocalInsightPlugin.java @@ -1382,7 +1382,7 @@ public class LocalInsightPlugin extends PumpPluginBase implements PumpInterface, pumpID.eventID = event.getEventPosition(); pumpID.pumpSerial = serial; pumpID.eventType = "EndOfTBR"; - pumpID.timestamp = timestamp; + pumpID.timestamp = timestamp - 5000L; MainApp.getDbHelper().createOrUpdate(pumpID); TemporaryBasal temporaryBasal = new TemporaryBasal(getInjector()); temporaryBasal.durationInMinutes = 0;