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