From 982b7b58fdd848ecda6af8a7581d5eac56a10f93 Mon Sep 17 00:00:00 2001 From: Abyss777 Date: Sat, 3 Sep 2016 18:44:54 +0500 Subject: Use knots for speedLimit --- src/org/traccar/events/OverspeedEventHandler.java | 2 -- 1 file changed, 2 deletions(-) diff --git a/src/org/traccar/events/OverspeedEventHandler.java b/src/org/traccar/events/OverspeedEventHandler.java index c739348eb..302fa87cd 100644 --- a/src/org/traccar/events/OverspeedEventHandler.java +++ b/src/org/traccar/events/OverspeedEventHandler.java @@ -23,7 +23,6 @@ import org.traccar.Context; import org.traccar.model.Device; import org.traccar.model.Event; import org.traccar.model.Position; -import org.traccar.helper.UnitsConverter; public class OverspeedEventHandler extends BaseEventHandler { @@ -63,7 +62,6 @@ public class OverspeedEventHandler extends BaseEventHandler { oldSpeed = lastPosition.getSpeed(); } } - speedLimit = UnitsConverter.knotsFromKph(speedLimit); if (speed > speedLimit && oldSpeed <= speedLimit) { events.add(new Event(Event.TYPE_DEVICE_OVERSPEED, position.getDeviceId(), position.getId())); } -- cgit v1.2.3