diff options
author | jcardus <asklocation.net@gmail.com> | 2022-10-26 15:02:22 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-10-26 15:02:22 +0100 |
commit | 3c7afdf75c4f3d045c0d51355d6ce62622eb2c4d (patch) | |
tree | 5d463ab58da832c25bf70d6cf68e76b4b99ef67e /src/main/java/org/traccar/handler/events | |
parent | 8ceb20c2d9c70f5e0aa107095a23c187019401f1 (diff) | |
download | trackermap-server-3c7afdf75c4f3d045c0d51355d6ce62622eb2c4d.tar.gz trackermap-server-3c7afdf75c4f3d045c0d51355d6ce62622eb2c4d.tar.bz2 trackermap-server-3c7afdf75c4f3d045c0d51355d6ce62622eb2c4d.zip |
Update MaintenanceEventHandler.java
trailing spaces
Diffstat (limited to 'src/main/java/org/traccar/handler/events')
-rw-r--r-- | src/main/java/org/traccar/handler/events/MaintenanceEventHandler.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/handler/events/MaintenanceEventHandler.java b/src/main/java/org/traccar/handler/events/MaintenanceEventHandler.java index 25a622373..909950acf 100644 --- a/src/main/java/org/traccar/handler/events/MaintenanceEventHandler.java +++ b/src/main/java/org/traccar/handler/events/MaintenanceEventHandler.java @@ -52,7 +52,7 @@ public class MaintenanceEventHandler extends BaseEventHandler { double oldValue = lastPosition.getDouble(maintenance.getType()); double newValue = position.getDouble(maintenance.getType()); if (oldValue != 0.0 && newValue != 0.0 && newValue >= maintenance.getStart()) { - if (oldValue < maintenance.getStart() + if (oldValue < maintenance.getStart() || (long) ((oldValue - maintenance.getStart()) / maintenance.getPeriod()) < (long) ((newValue - maintenance.getStart()) / maintenance.getPeriod())) { Event event = new Event(Event.TYPE_MAINTENANCE, position); |