Update OsMoTracker.java
This commit is contained in:
parent
6a27e9dcc1
commit
abf78b028e
1 changed files with 5 additions and 1 deletions
|
@ -82,7 +82,11 @@ public class OsMoTracker implements OsMoReactor {
|
|||
Location loc = bufferOfLocations.poll();
|
||||
lastSendLocation = loc;
|
||||
locationsSent ++;
|
||||
return "T|"+formatLocation(loc);
|
||||
if((System.currentTimeMillis() - loc.getTime()) > 2 * 60000 && loc.getTime() != 0) {
|
||||
return "B|"+formatLocation(loc);
|
||||
} else {
|
||||
return "T|"+formatLocation(loc);
|
||||
}
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue