diff options
author | Abyss777 <abyss@fox5.ru> | 2016-07-28 17:57:24 +0500 |
---|---|---|
committer | Abyss777 <abyss@fox5.ru> | 2016-07-28 17:57:24 +0500 |
commit | 6f89644fdcb3dbeb966cadbd810f9795922b8c4e (patch) | |
tree | 46c8d5dd19bf2cc0683cac7bdb04771463c71d12 | |
parent | 70f684945754b6bdadd2bf038ab955d93a95977d (diff) | |
download | trackermap-server-6f89644fdcb3dbeb966cadbd810f9795922b8c4e.tar.gz trackermap-server-6f89644fdcb3dbeb966cadbd810f9795922b8c4e.tar.bz2 trackermap-server-6f89644fdcb3dbeb966cadbd810f9795922b8c4e.zip |
Rename parameter
-rw-r--r-- | debug.xml | 2 | ||||
-rw-r--r-- | src/org/traccar/events/OverspeedEventHandler.java | 6 |
2 files changed, 4 insertions, 4 deletions
@@ -45,7 +45,7 @@ <entry key='event.enable'>true</entry> <entry key='event.overspeedHandler'>true</entry> - <entry key='event.overspeed.riseOnce'>true</entry> + <entry key='event.overspeed.notRepeat'>true</entry> <entry key='event.motionHandler'>true</entry> <entry key='event.geofenceHandler'>true</entry> <entry key='event.alertHandler'>true</entry> diff --git a/src/org/traccar/events/OverspeedEventHandler.java b/src/org/traccar/events/OverspeedEventHandler.java index a1efbde48..dbdb01ffb 100644 --- a/src/org/traccar/events/OverspeedEventHandler.java +++ b/src/org/traccar/events/OverspeedEventHandler.java @@ -29,10 +29,10 @@ public class OverspeedEventHandler extends BaseEventHandler { public static final String ATTRIBUTE_SPEED_LIMIT = "speedLimit"; - private boolean riseOnce; + private boolean notRepeat; public OverspeedEventHandler() { - riseOnce = Context.getConfig().getBoolean("event.overspeed.riseOnce"); + notRepeat = Context.getConfig().getBoolean("event.overspeed.notRepeat"); } @Override @@ -57,7 +57,7 @@ public class OverspeedEventHandler extends BaseEventHandler { return null; } double oldSpeed = 0; - if (riseOnce) { + if (notRepeat) { Position lastPosition = Context.getDeviceManager().getLastPosition(position.getDeviceId()); if (lastPosition != null) { oldSpeed = lastPosition.getSpeed(); |