|
|
@ -26,9 +26,10 @@ public class MineThread implements Runnable { |
|
|
|
public void run() { |
|
|
|
public void run() { |
|
|
|
LocalDateTime nextPulse = LocalDateTime.now().withMinute(59).minusHours(1); |
|
|
|
LocalDateTime nextPulse = LocalDateTime.now().withMinute(59).minusHours(1); |
|
|
|
while (true) { |
|
|
|
while (true) { |
|
|
|
if(LocalDateTime.now().isAfter(nextPulse)); |
|
|
|
if(LocalDateTime.now().isAfter(nextPulse)) { |
|
|
|
processMineWindows(); |
|
|
|
processMineWindows(); |
|
|
|
nextPulse = nextPulse.plusMinutes(30); |
|
|
|
nextPulse = nextPulse.plusMinutes(30); |
|
|
|
|
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|