aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorJamie Guthrie <jamie.guthrie@gmail.com>2023-08-15 21:20:21 +0200
committerJamie Guthrie <jamie.guthrie@gmail.com>2023-08-15 21:20:21 +0200
commit95059cb3db832a26c6dbf3706aded3a2ffbcf3d8 (patch)
tree836da7ddf4c2edfa75a7aecb1bf8e404bf4f77cc /src
parent25c8da353ead804eabb5b3388f711f20585feff3 (diff)
downloadtrackermap-server-95059cb3db832a26c6dbf3706aded3a2ffbcf3d8.tar.gz
trackermap-server-95059cb3db832a26c6dbf3706aded3a2ffbcf3d8.tar.bz2
trackermap-server-95059cb3db832a26c6dbf3706aded3a2ffbcf3d8.zip
Rename setEvent method to checkEvent
Diffstat (limited to 'src')
-rw-r--r--src/main/java/org/traccar/session/state/OverspeedProcessor.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/org/traccar/session/state/OverspeedProcessor.java b/src/main/java/org/traccar/session/state/OverspeedProcessor.java
index a6cd72322..b23649570 100644
--- a/src/main/java/org/traccar/session/state/OverspeedProcessor.java
+++ b/src/main/java/org/traccar/session/state/OverspeedProcessor.java
@@ -34,7 +34,7 @@ public final class OverspeedProcessor {
if (oldState) {
boolean newState = position.getSpeed() > speedLimit;
if (newState) {
- setEvent(state, position, speedLimit, minimalDuration);
+ checkEvent(state, position, speedLimit, minimalDuration);
} else {
state.setOverspeedState(false);
state.setOverspeedTime(null);
@@ -45,11 +45,11 @@ public final class OverspeedProcessor {
state.setOverspeedTime(position.getFixTime());
state.setOverspeedGeofenceId(geofenceId);
- setEvent(state, position, speedLimit, minimalDuration);
+ checkEvent(state, position, speedLimit, minimalDuration);
}
}
- private static void setEvent(OverspeedState state, Position position, double speedLimit, long minimalDuration) {
+ private static void checkEvent(OverspeedState state, Position position, double speedLimit, long minimalDuration) {
if (state.getOverspeedTime() != null) {
long oldTime = state.getOverspeedTime().getTime();
long newTime = position.getFixTime().getTime();