diff options
author | Abyss777 <abyss@fox5.ru> | 2016-09-03 18:44:54 +0500 |
---|---|---|
committer | Abyss777 <abyss@fox5.ru> | 2016-09-03 18:44:54 +0500 |
commit | 982b7b58fdd848ecda6af8a7581d5eac56a10f93 (patch) | |
tree | e1daa42dbad39cc4fa411a9e3d7b98786c8fd8b4 | |
parent | 8ec8955876bbfaf9e2856ec50f2a011b1dee0eca (diff) | |
download | traccar-server-982b7b58fdd848ecda6af8a7581d5eac56a10f93.tar.gz traccar-server-982b7b58fdd848ecda6af8a7581d5eac56a10f93.tar.bz2 traccar-server-982b7b58fdd848ecda6af8a7581d5eac56a10f93.zip |
Use knots for speedLimit
-rw-r--r-- | src/org/traccar/events/OverspeedEventHandler.java | 2 |
1 files changed, 0 insertions, 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())); } |