mirror of
https://github.com/eclipse-sailing-analytics/sailing-analytics.git
synced 2026-10-10 14:20:55 +00:00
Event overview stage - Fixed ttl interval calculation
This commit is contained in:
1 parent
442ece1470
commit
54eb4cfdc3
1 file changed
+1
-1
+1
-1
@@ -34,7 +34,7 @@ public class GetEventOverviewStageAction implements Action<ResultWithTTL<EventOv
|
||||
ttl = 1000 * 60 * 2;
|
||||
}
|
||||
if(state == EventState.UPCOMING || state == EventState.PLANNED) {
|
||||
ttl = Math.max(ttl, (int) now.until(event.getStartDate()).asMillis());
|
||||
ttl = Math.min(ttl, (int) now.until(event.getStartDate()).asMillis());
|
||||
}
|
||||
|
||||
// TODO get correct message
|
||||
|
||||
Reference in new issue
Block a user