diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-11-25 10:37:24 +1300 |
---|---|---|
committer | Anton Tananaev <anton.tananaev@gmail.com> | 2016-11-25 10:37:24 +1300 |
commit | f1038fa65fe2befb2a1828c46cab99de6b560f67 (patch) | |
tree | 1feae894f580125b6528378b6d567e41497bc14c /src/org/traccar/events | |
parent | ab8fc4daef86295f9bab39890aa6de2e51342400 (diff) | |
download | trackermap-server-f1038fa65fe2befb2a1828c46cab99de6b560f67.tar.gz trackermap-server-f1038fa65fe2befb2a1828c46cab99de6b560f67.tar.bz2 trackermap-server-f1038fa65fe2befb2a1828c46cab99de6b560f67.zip |
Rename maintenance events
Diffstat (limited to 'src/org/traccar/events')
-rw-r--r-- | src/org/traccar/events/MaintenanceEventHandler.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/events/MaintenanceEventHandler.java b/src/org/traccar/events/MaintenanceEventHandler.java index 5a36a74d1..9e0da97f5 100644 --- a/src/org/traccar/events/MaintenanceEventHandler.java +++ b/src/org/traccar/events/MaintenanceEventHandler.java @@ -58,7 +58,7 @@ public class MaintenanceEventHandler extends BaseEventHandler { oldTotalDistance -= maintenanceStart; newTotalDistance -= maintenanceStart; if ((long) (oldTotalDistance / maintenanceInterval) < (long) (newTotalDistance / maintenanceInterval)) { - events.add(new Event(Event.TYPE_MAINTENANCE_NEEDED, position.getDeviceId(), position.getId())); + events.add(new Event(Event.TYPE_MAINTENANCE, position.getDeviceId(), position.getId())); } return events; |