aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/database/DeviceManager.java
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2018-01-22 18:20:50 +1300
committerAnton Tananaev <anton.tananaev@gmail.com>2018-01-22 18:20:50 +1300
commit68b2d3ab8897114dac8cd92618cf0777f630750a (patch)
tree9a7bd794bea8281e06340be957eb0c2305d1c223 /src/org/traccar/database/DeviceManager.java
parentd6b498b1798b1ff2059a1338ca68e958699ef028 (diff)
downloadtrackermap-server-68b2d3ab8897114dac8cd92618cf0777f630750a.tar.gz
trackermap-server-68b2d3ab8897114dac8cd92618cf0777f630750a.tar.bz2
trackermap-server-68b2d3ab8897114dac8cd92618cf0777f630750a.zip
Use consistent server time
Diffstat (limited to 'src/org/traccar/database/DeviceManager.java')
-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 4c329786f..c59061b7f 100644
--- a/src/org/traccar/database/DeviceManager.java
+++ b/src/org/traccar/database/DeviceManager.java
@@ -355,7 +355,7 @@ public class DeviceManager extends BaseObjectManager<Device> implements Identity
Position last = positions.get(deviceTotalDistance.getDeviceId());
if (last != null) {
last.getAttributes().put(Position.KEY_TOTAL_DISTANCE, deviceTotalDistance.getTotalDistance());
- getDataManager().addPosition(last);
+ getDataManager().addObject(last);
updateLatestPosition(last);
} else {
throw new IllegalArgumentException();