*
* @return The current rate of the download, in bytes/second
*/
- public long getCurrentRate() {
+ public long currentRate() {
return inputStream.getCurrentRate();
}
*
* @return The overall rate of the download, in bytes/second
*/
- public long getOverallRate() {
+ public long overallRate() {
return inputStream.getOverallRate();
}
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");