diff options
author | Abyss777 <abyss@fox5.ru> | 2017-06-16 09:51:57 +0500 |
---|---|---|
committer | Abyss777 <abyss@fox5.ru> | 2017-06-16 09:51:57 +0500 |
commit | 9a3889863bc8b0140ccdcaa1ba1982903202b67b (patch) | |
tree | a147a355d953d02618f54a44da62445b3df7076d /src/org/traccar/reports | |
parent | b5e180da135c48afc3d89665000b6de0e6a330e3 (diff) | |
download | traccar-server-9a3889863bc8b0140ccdcaa1ba1982903202b67b.tar.gz traccar-server-9a3889863bc8b0140ccdcaa1ba1982903202b67b.tar.bz2 traccar-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.java | 2 |
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; |