continue;
}
if (firstNetwork.get().getKey() > System.currentTimeMillis()) {
- eventBus.post(new GenericMessage(String.format("Waiting %d minutes to connect to %s...", TimeUnit.MILLISECONDS.toMinutes(firstNetwork.get().getKey() - System.currentTimeMillis()), firstNetwork.get().getValue().name())));
+ eventBus.post(new GenericMessage(String.format("Will connect to %2$s at %1$tH:%1$tM...", firstNetwork.get().getKey(), firstNetwork.get().getValue().name())));
synchronized (syncObject) {
try {
syncObject.wait(firstNetwork.get().getKey() - System.currentTimeMillis());