mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-27 06:17:27 +00:00
fix final step of get-paths-even-timed for cases (e.g. offshore-races) where the simulation time-step is large compared to the even-timing time-step (currently always 15sec);
This commit is contained in:
1 parent
dfb75732c9
commit
b4dc012351
1 file changed
+2
-1
@@ -132,7 +132,8 @@ public class PathImpl implements Path, Serializable {
|
||||
|
||||
if ((this.pathPoints.get(idx).getTimePoint().asMillis() >= nextTimePoint.asMillis())||(idx == this.pathPoints.size()-1)) {
|
||||
|
||||
if (idx == this.pathPoints.size()-1) {
|
||||
// for the last step, next-time-point needs to be aligned to the time-range of the course
|
||||
if (nextTimePoint.after(endTime)) {
|
||||
nextTimePoint = endTime;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user