aboutsummaryrefslogtreecommitdiff
path: root/src/org/traccar/reports
diff options
context:
space:
mode:
authorAbyss777 <abyss@fox5.ru>2017-06-16 09:51:57 +0500
committerAbyss777 <abyss@fox5.ru>2017-06-16 09:51:57 +0500
commit9a3889863bc8b0140ccdcaa1ba1982903202b67b (patch)
treea147a355d953d02618f54a44da62445b3df7076d /src/org/traccar/reports
parentb5e180da135c48afc3d89665000b6de0e6a330e3 (diff)
downloadtrackermap-server-9a3889863bc8b0140ccdcaa1ba1982903202b67b.tar.gz
trackermap-server-9a3889863bc8b0140ccdcaa1ba1982903202b67b.tar.bz2
trackermap-server-9a3889863bc8b0140ccdcaa1ba1982903202b67b.zip
Fix last Stop if it is last position in period
Diffstat (limited to 'src/org/traccar/reports')
-rw-r--r--src/org/traccar/reports/ReportUtils.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/org/traccar/reports/ReportUtils.java b/src/org/traccar/reports/ReportUtils.java
index cd30a61c4..705f11429 100644
--- a/src/org/traccar/reports/ReportUtils.java
+++ b/src/org/traccar/reports/ReportUtils.java
@@ -300,7 +300,7 @@ public final class ReportUtils {
previousEndParkingIndex));
}
}
- result.add(calculateStop(positions, startParkingIndex, endParkingIndex));
+ result.add(calculateStop(positions, startParkingIndex, isLast ? i : endParkingIndex));
}
}
previousEndParkingIndex = endParkingIndex;