aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2016-09-17 01:09:04 +1200
committerAnton Tananaev <anton.tananaev@gmail.com>2016-09-17 01:09:04 +1200
commit21be926af517a09d91cb39fde45fb18a1a1cdfe9 (patch)
tree80c04d15e36884f8ccddbc7c15928e77de551fff /src/org/traccar
parent9ea807ed8d651d78b31ef28a81a9fce2c7a91d48 (diff)
downloadtrackermap-server-21be926af517a09d91cb39fde45fb18a1a1cdfe9.tar.gz
trackermap-server-21be926af517a09d91cb39fde45fb18a1a1cdfe9.tar.bz2
trackermap-server-21be926af517a09d91cb39fde45fb18a1a1cdfe9.zip
Update position if time is the same
Diffstat (limited to 'src/org/traccar')
-rw-r--r--src/org/traccar/database/DeviceManager.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/database/DeviceManager.java b/src/org/traccar/database/DeviceManager.java
index 3476139f2..5f68df831 100644
--- a/src/org/traccar/database/DeviceManager.java
+++ b/src/org/traccar/database/DeviceManager.java
@@ -194,7 +194,7 @@ public class DeviceManager implements IdentityManager {
public boolean isLatestPosition(Position position) {
Position lastPosition = getLastPosition(position.getDeviceId());
- return lastPosition == null || position.getFixTime().compareTo(lastPosition.getFixTime()) > 0;
+ return lastPosition == null || position.getFixTime().compareTo(lastPosition.getFixTime()) >= 0;
}
public void updateLatestPosition(Position position) throws SQLException {