mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-15 08:41:01 +00:00
Reverted c2aee1a9cc because this changes
the semantics. The semantics change needs to be discussed further before implementing it at such a critical level.
This commit is contained in:
1 parent
d09e34f8db
commit
1febdae995
1 file changed
+5
-5
+5
-5
@@ -916,11 +916,11 @@ public abstract class AbstractSimpleLeaderboardImpl implements Leaderboard, Race
|
||||
// stop counting when competitor finished the race
|
||||
to = markPassings.last().getTimePoint();
|
||||
} else {
|
||||
// seems that the last mark passing is not the finish - that means that
|
||||
// the competitor did not finish the race - we still want to count
|
||||
// the time until the last mark passing
|
||||
if (timePoint.after(markPassings.last().getTimePoint())) {
|
||||
to = markPassings.last().getTimePoint();
|
||||
if (trackedRace.getEndOfTracking() != null
|
||||
&& timePoint.after(trackedRace.getEndOfTracking())) {
|
||||
result = null; // race not finished until end of tracking; no reasonable value can be
|
||||
// computed for competitor
|
||||
break;
|
||||
} else {
|
||||
to = timePoint;
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user