From c56330cae734d875e68ae44e818efec94ddf1a0f Mon Sep 17 00:00:00 2001 From: Roumen Georgiev Date: Wed, 29 Nov 2017 09:21:55 +0200 Subject: [PATCH] Less than, not moreThan15 --- .../NSClientInternal/services/NSClientService.java | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/src/main/java/info/nightscout/androidaps/plugins/NSClientInternal/services/NSClientService.java b/app/src/main/java/info/nightscout/androidaps/plugins/NSClientInternal/services/NSClientService.java index de41891433..6216bd924d 100644 --- a/app/src/main/java/info/nightscout/androidaps/plugins/NSClientInternal/services/NSClientService.java +++ b/app/src/main/java/info/nightscout/androidaps/plugins/NSClientInternal/services/NSClientService.java @@ -632,11 +632,11 @@ public class NSClientService extends Service { if (sgv.getMills() > latestDateInReceivedData) latestDateInReceivedData = sgv.getMills(); } - // Was that sgv more than 15 mins ago ? - boolean moreThan15MinAgo = false; + // Was that sgv more less 15 mins ago ? + boolean lessThan15MinAgo = false; if((System.currentTimeMillis()-latestDateInReceivedData)/(60 * 1000L) < 15L ) - moreThan15MinAgo = true; - if(Notification.isAlarmForStaleData() && moreThan15MinAgo){ + lessThan15MinAgo = true; + if(Notification.isAlarmForStaleData() && lessThan15MinAgo){ MainApp.bus().post(new EventDismissNotification(Notification.NSALARM)); } BroadcastSgvs.handleNewSgv(sgvs, MainApp.instance().getApplicationContext(), isDelta);