fix downloader progress comparator, GitHub issue #89

auto-update
Zlatin Balevsky 2021-10-15 12:04:09 +01:00
parent bc4f61bcdb
commit 33b5ca184c
No known key found for this signature in database
GPG Key ID: A72832072D525E41
1 changed files with 2 additions and 2 deletions

View File

@ -6,8 +6,8 @@ class DownloaderComparator implements Comparator<Downloader>{
@Override
public int compare(Downloader o1, Downloader o2) {
double d1 = o1.donePieces().toDouble() / o1.nPieces
double d2 = o2.donePieces().toDouble() / o2.nPieces
double d1 = o1.donePieces().toDouble() / o1.getNPieces()
double d2 = o2.donePieces().toDouble() / o2.getNPieces()
return Double.compare(d1, d2);
}
}