mirror of https://github.com/zlatinb/muwire
only show download speed if downloading
parent
5aecf72d6f
commit
2d53999c8e
|
@ -102,9 +102,11 @@ public class Downloader {
|
||||||
|
|
||||||
public int speed() {
|
public int speed() {
|
||||||
int total = 0
|
int total = 0
|
||||||
|
if (getCurrentState() == DownloadState.DOWNLOADING) {
|
||||||
activeWorkers.values().each {
|
activeWorkers.values().each {
|
||||||
total += it.speed()
|
total += it.speed()
|
||||||
}
|
}
|
||||||
|
}
|
||||||
total
|
total
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue