Fixed bug causing too high CPU usage

This commit is contained in:
Robert Vokac 2024-01-14 15:14:18 +00:00
parent 3225b23a27
commit aaf9e29aef
No known key found for this signature in database
GPG Key ID: 693D30BEE3329055

View File

@ -107,6 +107,11 @@ public class TimeCalc {
String nowString = DATE_TIME_FORMATTER.format(now);
if (alreadyShownTimes.contains(nowString)) {
//nothing to do
try {
Thread.sleep(1000);
} catch (InterruptedException e) {
}
continue;
} else {
alreadyShownTimes.add(nowString);