diff --git a/gui/src/main/groovy/com/muwire/gui/DownloaderComparator.groovy b/gui/src/main/groovy/com/muwire/gui/DownloaderComparator.groovy index 76d27fe4..48065d48 100644 --- a/gui/src/main/groovy/com/muwire/gui/DownloaderComparator.groovy +++ b/gui/src/main/groovy/com/muwire/gui/DownloaderComparator.groovy @@ -6,8 +6,8 @@ class DownloaderComparator implements Comparator{ @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); } }