Update OsMoTracker.java

This commit is contained in:
vshcherb 2015-06-01 11:39:47 +02:00
parent 6a27e9dcc1
commit abf78b028e

View file

@ -82,8 +82,12 @@ public class OsMoTracker implements OsMoReactor {
Location loc = bufferOfLocations.poll();
lastSendLocation = loc;
locationsSent ++;
if((System.currentTimeMillis() - loc.getTime()) > 2 * 60000 && loc.getTime() != 0) {
return "B|"+formatLocation(loc);
} else {
return "T|"+formatLocation(loc);
}
}
return null;
}