From: David ‘Bombe’ Roden Date: Thu, 11 Apr 2013 05:25:16 +0000 (+0200) Subject: Rename methods. X-Git-Url: https://git.pterodactylus.net/?a=commitdiff_plain;h=f63869cc3b8dbe14f15def799d6fd4c997259d31;p=xudocci.git Rename methods. --- diff --git a/src/main/java/net/pterodactylus/irc/DccReceiver.java b/src/main/java/net/pterodactylus/irc/DccReceiver.java index a6a55eb..e58fed3 100644 --- a/src/main/java/net/pterodactylus/irc/DccReceiver.java +++ b/src/main/java/net/pterodactylus/irc/DccReceiver.java @@ -125,7 +125,7 @@ public class DccReceiver extends AbstractExecutionThreadService { * * @return The current rate of the download, in bytes/second */ - public long getCurrentRate() { + public long currentRate() { return inputStream.getCurrentRate(); } @@ -134,7 +134,7 @@ public class DccReceiver extends AbstractExecutionThreadService { * * @return The overall rate of the download, in bytes/second */ - public long getOverallRate() { + public long overallRate() { return inputStream.getOverallRate(); } 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 5221456..8696380 100644 --- a/src/main/java/net/pterodactylus/xdcc/ui/stdin/CommandReader.java +++ b/src/main/java/net/pterodactylus/xdcc/ui/stdin/CommandReader.java @@ -112,12 +112,12 @@ public class CommandReader extends AbstractExecutionThreadService { for (DccReceiver dccReceiver : core.dccReceivers()) { writer.write(String.format("[%d] %s (%s, ", counter++, dccReceiver.filename(), dccReceiver.size())); if (dccReceiver.isRunning()) { - writer.write(String.format("%.1f%%, %s", dccReceiver.progress() * 100.0 / dccReceiver.size(), f(dccReceiver.getCurrentRate()))); + writer.write(String.format("%.1f%%, %s", dccReceiver.progress() * 100.0 / dccReceiver.size(), f(dccReceiver.currentRate()))); } else { if (dccReceiver.progress() >= dccReceiver.size()) { - writer.write(String.format("complete, %s", f(dccReceiver.getOverallRate()))); + writer.write(String.format("complete, %s", f(dccReceiver.overallRate()))); } else { - writer.write(String.format("aborted at %.1f%%, %s", dccReceiver.progress() * 100.0 / dccReceiver.size(), f(dccReceiver.getCurrentRate()))); + writer.write(String.format("aborted at %.1f%%, %s", dccReceiver.progress() * 100.0 / dccReceiver.size(), f(dccReceiver.currentRate()))); } } writer.write("/s)\n");