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:
Steffen Schaefer committed 2015-06-18 18:11:36 +02:00
1 parent 9701f21da4
commit 894a1c5f96
1 file changed
+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);