Format overall download rate correctly.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 11 Apr 2013 08:31:43 +0000 (10:31 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 11 Apr 2013 08:31:43 +0000 (10:31 +0200)
src/main/java/net/pterodactylus/xdcc/ui/stdin/CommandReader.java

index 87b9e49..c362a9b 100644 (file)
@@ -186,7 +186,7 @@ public class CommandReader extends AbstractExecutionThreadService {
        public void downloadFinished(DownloadFinished downloadFinished) {
                Download download = downloadFinished.download();
                try {
-                       writer.write(String.format("Download of %s (from %s, %s) has finished, at %s/s.\n", download.filename(), download.bot().name(), download.bot().network().name(), download.dccReceiver().overallRate()));
+                       writer.write(String.format("Download of %s (from %s, %s) has finished, at %s/s.\n", download.filename(), download.bot().name(), download.bot().network().name(), f(download.dccReceiver().overallRate())));
                        writer.flush();
                } catch (IOException ioe1) {
                        /* ignore. */