From: David ‘Bombe’ Roden Date: Thu, 11 Apr 2013 08:31:43 +0000 (+0200) Subject: Format overall download rate correctly. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=12ab30478ba379ed9009a1277ba16d2a2019d52f;p=xudocci.git Format overall download rate correctly. --- diff --git a/src/main/java/net/pterodactylus/xdcc/ui/stdin/CommandReader.java b/src/main/java/net/pterodactylus/xdcc/ui/stdin/CommandReader.java index 87b9e49..c362a9b 100644 --- a/src/main/java/net/pterodactylus/xdcc/ui/stdin/CommandReader.java +++ b/src/main/java/net/pterodactylus/xdcc/ui/stdin/CommandReader.java @@ -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. */