Use TimeUnit for wait-calls

This commit is contained in:
0xboobface 2018-11-23 21:15:30 +01:00
parent 3445fa5ca0
commit 85fee70e60
1 changed files with 2 additions and 1 deletions

View File

@ -22,6 +22,7 @@ import java.util.Map;
import java.util.Map.Entry;
import java.util.NoSuchElementException;
import java.util.concurrent.ExecutionException;
import java.util.concurrent.TimeUnit;
import java.util.concurrent.locks.ReentrantLock;
import java.util.stream.Collectors;
@ -423,7 +424,7 @@ public class LocalRecorder implements Recorder {
try {
if (running)
Thread.sleep(10000);
Thread.sleep(TimeUnit.SECONDS.toMillis(60));
} catch (InterruptedException e) {
LOG.trace("Sleep interrupted");
}