aboutsummaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2023-02-23 16:20:23 -0800
committerAnton Tananaev <anton@traccar.org>2023-02-23 16:20:23 -0800
commit2ac77554f7771a014d62a6e5eeb381b4650dc4f4 (patch)
treee7a31b0c19cfabef33427d964f2af8f77e4745ce /src/main
parentb943cdbc7bce5d28e9c32b16b17bf3da6380e031 (diff)
downloadtrackermap-server-2ac77554f7771a014d62a6e5eeb381b4650dc4f4.tar.gz
trackermap-server-2ac77554f7771a014d62a6e5eeb381b4650dc4f4.tar.bz2
trackermap-server-2ac77554f7771a014d62a6e5eeb381b4650dc4f4.zip
Fix short trips and stops
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/org/traccar/reports/common/ReportUtils.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/main/java/org/traccar/reports/common/ReportUtils.java b/src/main/java/org/traccar/reports/common/ReportUtils.java
index a7c420095..35faa9c8b 100644
--- a/src/main/java/org/traccar/reports/common/ReportUtils.java
+++ b/src/main/java/org/traccar/reports/common/ReportUtils.java
@@ -386,7 +386,7 @@ public class ReportUtils {
}
}
}
- if (startEventIndex >= 0 && startEventIndex < positions.size() - 1) {
+ if (detected & startEventIndex >= 0 && startEventIndex < positions.size() - 1) {
int endIndex = startNoEventIndex >= 0 ? startNoEventIndex : positions.size() - 1;
result.add(calculateTripOrStop(
device, positions, startEventIndex, endIndex, ignoreOdometer, reportClass));