Event overview stage - Fixed ttl interval calculation

This commit is contained in:
Benjamin Barth committed 2015-05-21 15:20:38 +02:00
1 parent 442ece1470
commit 54eb4cfdc3
1 file changed
+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