mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-11-02 17:19:37 +00:00
Adjusted condition to enable/disable the calculation of stats that could
have a bad influence on the overall system performance
This commit is contained in:
1 parent
9701f21da4
commit
894a1c5f96
1 file changed
+1
-1
+1
-1
@@ -62,7 +62,7 @@ public class GetEventStatisticsAction implements Action<ResultWithTTL<EventStati
|
||||
trackedRaces += HomeServiceUtil.calculateTrackedRaceCount(leaderboard);
|
||||
regattas++;
|
||||
String disableStats = System.getenv("DISABLE_STATS");
|
||||
if (disableStats == null || !disableStats.isEmpty()) {
|
||||
if (disableStats == null || "false".equals(disableStats)) {
|
||||
for (TrackedRace trackedRace : leaderboard.getTrackedRaces()) {
|
||||
for (Competitor competitor : trackedRace.getRace().getCompetitors()) {
|
||||
GPSFixTrack<Competitor, GPSFixMoving> competitorTrack = trackedRace.getTrack(competitor);
|
||||
|
||||
Reference in new issue
Block a user