From: David ‘Bombe’ Roden Date: Wed, 14 Jan 2015 05:49:55 +0000 (+0100) Subject: Show timestamp of next connect attempt. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=d8c6d72caaa1ba75d09bd28f2bb10ae6f4964bf4;p=xudocci.git Show timestamp of next connect attempt. --- diff --git a/src/main/java/net/pterodactylus/xdcc/core/Core.java b/src/main/java/net/pterodactylus/xdcc/core/Core.java index 5ec21cf..d39ee2b 100644 --- a/src/main/java/net/pterodactylus/xdcc/core/Core.java +++ b/src/main/java/net/pterodactylus/xdcc/core/Core.java @@ -435,7 +435,7 @@ public class Core extends AbstractExecutionThreadService { 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());