Less than, not moreThan15
This commit is contained in:
parent
542cedff9d
commit
c56330cae7
|
@ -632,11 +632,11 @@ public class NSClientService extends Service {
|
||||||
if (sgv.getMills() > latestDateInReceivedData)
|
if (sgv.getMills() > latestDateInReceivedData)
|
||||||
latestDateInReceivedData = sgv.getMills();
|
latestDateInReceivedData = sgv.getMills();
|
||||||
}
|
}
|
||||||
// Was that sgv more than 15 mins ago ?
|
// Was that sgv more less 15 mins ago ?
|
||||||
boolean moreThan15MinAgo = false;
|
boolean lessThan15MinAgo = false;
|
||||||
if((System.currentTimeMillis()-latestDateInReceivedData)/(60 * 1000L) < 15L )
|
if((System.currentTimeMillis()-latestDateInReceivedData)/(60 * 1000L) < 15L )
|
||||||
moreThan15MinAgo = true;
|
lessThan15MinAgo = true;
|
||||||
if(Notification.isAlarmForStaleData() && moreThan15MinAgo){
|
if(Notification.isAlarmForStaleData() && lessThan15MinAgo){
|
||||||
MainApp.bus().post(new EventDismissNotification(Notification.NSALARM));
|
MainApp.bus().post(new EventDismissNotification(Notification.NSALARM));
|
||||||
}
|
}
|
||||||
BroadcastSgvs.handleNewSgv(sgvs, MainApp.instance().getApplicationContext(), isDelta);
|
BroadcastSgvs.handleNewSgv(sgvs, MainApp.instance().getApplicationContext(), isDelta);
|
||||||
|
|
Loading…
Reference in a new issue