Insight: Log end events five seconds earlier

This commit is contained in:
TebbeUbben 2020-05-28 15:24:53 +02:00
parent ea20895966
commit 79cafc14f5

View file

@ -1382,7 +1382,7 @@ public class LocalInsightPlugin extends PumpPluginBase implements PumpInterface,
pumpID.eventID = event.getEventPosition(); pumpID.eventID = event.getEventPosition();
pumpID.pumpSerial = serial; pumpID.pumpSerial = serial;
pumpID.eventType = "EndOfTBR"; pumpID.eventType = "EndOfTBR";
pumpID.timestamp = timestamp; pumpID.timestamp = timestamp - 5000L;
MainApp.getDbHelper().createOrUpdate(pumpID); MainApp.getDbHelper().createOrUpdate(pumpID);
TemporaryBasal temporaryBasal = new TemporaryBasal(getInjector()); TemporaryBasal temporaryBasal = new TemporaryBasal(getInjector());
temporaryBasal.durationInMinutes = 0; temporaryBasal.durationInMinutes = 0;