HotZone availability reset at 01am.

This commit is contained in:
2023-02-24 00:32:18 -05:00
parent 6a948fbe2e
commit 176fdb51da
4 changed files with 34 additions and 5 deletions
@@ -191,6 +191,13 @@ public class HourlyJobThread implements Runnable {
try {
// Reset zone availability at 1am
// or if we run out of hotZones
if (LocalDateTime.now().getHour() == 01 ||
ZoneManager.availableHotZones() == 0)
ZoneManager.resetHotZones();
// Use the same hotZone this hour up and until
// the HotZone_Duration from the ConfigManager