mirror of https://github.com/zlatinb/muwire
do not count finished downloaders towards bandwidth
parent
de682a802a
commit
a9aa8dd840
|
@ -104,6 +104,7 @@ public class Downloader {
|
||||||
int total = 0
|
int total = 0
|
||||||
if (getCurrentState() == DownloadState.DOWNLOADING) {
|
if (getCurrentState() == DownloadState.DOWNLOADING) {
|
||||||
activeWorkers.values().each {
|
activeWorkers.values().each {
|
||||||
|
if (it.currentState == WorkerState.DOWNLOADING)
|
||||||
total += it.speed()
|
total += it.speed()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue