From d8c6d72caaa1ba75d09bd28f2bb10ae6f4964bf4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Wed, 14 Jan 2015 06:49:55 +0100 Subject: [PATCH] Show timestamp of next connect attempt. --- src/main/java/net/pterodactylus/xdcc/core/Core.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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()); -- 2.7.4