Show timestamp of next connect attempt.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 14 Jan 2015 05:49:55 +0000 (06:49 +0100)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Wed, 14 Jan 2015 05:49:55 +0000 (06:49 +0100)
src/main/java/net/pterodactylus/xdcc/core/Core.java

index 5ec21cf..d39ee2b 100644 (file)
@@ -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());