do not count finished downloaders towards bandwidth

pull/4/head
Zlatin Balevsky 2019-06-04 21:55:59 +01:00
parent de682a802a
commit a9aa8dd840
1 changed files with 2 additions and 1 deletions

View File

@ -104,6 +104,7 @@ public class Downloader {
int total = 0
if (getCurrentState() == DownloadState.DOWNLOADING) {
activeWorkers.values().each {
if (it.currentState == WorkerState.DOWNLOADING)
total += it.speed()
}
}