Rename methods.
authorDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 11 Apr 2013 05:25:16 +0000 (07:25 +0200)
committerDavid ‘Bombe’ Roden <bombe@pterodactylus.net>
Thu, 11 Apr 2013 05:25:16 +0000 (07:25 +0200)
src/main/java/net/pterodactylus/irc/DccReceiver.java
src/main/java/net/pterodactylus/xdcc/ui/stdin/CommandReader.java

index a6a55eb..e58fed3 100644 (file)
@@ -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();
        }
 
index 5221456..8696380 100644 (file)
@@ -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");