From f63869cc3b8dbe14f15def799d6fd4c997259d31 Mon Sep 17 00:00:00 2001 From: =?utf8?q?David=20=E2=80=98Bombe=E2=80=99=20Roden?= Date: Thu, 11 Apr 2013 07:25:16 +0200 Subject: [PATCH] Rename methods. --- src/main/java/net/pterodactylus/irc/DccReceiver.java | 4 ++-- src/main/java/net/pterodactylus/xdcc/ui/stdin/CommandReader.java | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) 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"); -- 2.7.4