only show download speed if downloading

pull/4/head
Zlatin Balevsky 2019-06-04 13:23:48 +01:00
parent 5aecf72d6f
commit 2d53999c8e
1 changed files with 4 additions and 2 deletions

View File

@ -102,8 +102,10 @@ public class Downloader {
public int speed() { public int speed() {
int total = 0 int total = 0
activeWorkers.values().each { if (getCurrentState() == DownloadState.DOWNLOADING) {
total += it.speed() activeWorkers.values().each {
total += it.speed()
}
} }
total total
} }