only show download speed if downloading
This commit is contained in:
@ -102,8 +102,10 @@ public class Downloader {
|
||||
|
||||
public int speed() {
|
||||
int total = 0
|
||||
activeWorkers.values().each {
|
||||
total += it.speed()
|
||||
if (getCurrentState() == DownloadState.DOWNLOADING) {
|
||||
activeWorkers.values().each {
|
||||
total += it.speed()
|
||||
}
|
||||
}
|
||||
total
|
||||
}
|
||||
|
Reference in New Issue
Block a user