mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-05 03:43:52 +00:00
Merge branch 'design2015-races' of ssh://sapsailing.com/home/trac/git into design2015-races
# By Steffen Schaefer # Via Steffen Schaefer * 'design2015-races' of ssh://sapsailing.com/home/trac/git: Fixed calculation of live race count for regatta progress
This commit is contained in:
commit
6284ad7ef0
1 file changed
+6
+6
@@ -564,6 +564,12 @@ public class RaceContext {
|
||||
}
|
||||
|
||||
public boolean isLive() {
|
||||
if(getStartTime() == null) {
|
||||
return false;
|
||||
}
|
||||
if (trackedRace != null && trackedRace.hasGPSData() && trackedRace.hasWindData()) {
|
||||
return trackedRace.isLive(now);
|
||||
}
|
||||
return getLiveRaceViewState() == RaceViewState.RUNNING;
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user