diff options
author | Anton Tananaev <anton.tananaev@gmail.com> | 2016-09-04 08:28:07 +1200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-09-04 08:28:07 +1200 |
commit | f66ffa1facbf2a4f7ffbceb81c19f3f36cec230a (patch) | |
tree | e1daa42dbad39cc4fa411a9e3d7b98786c8fd8b4 /src | |
parent | 8ec8955876bbfaf9e2856ec50f2a011b1dee0eca (diff) | |
parent | 982b7b58fdd848ecda6af8a7581d5eac56a10f93 (diff) | |
download | traccar-server-f66ffa1facbf2a4f7ffbceb81c19f3f36cec230a.tar.gz traccar-server-f66ffa1facbf2a4f7ffbceb81c19f3f36cec230a.tar.bz2 traccar-server-f66ffa1facbf2a4f7ffbceb81c19f3f36cec230a.zip |
Merge pull request #2284 from Abyss777/speedlimit_knots
Use knots for speedLimit
Diffstat (limited to 'src')
-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())); } |