Hi,
I don't get why, when sorting files by remaining time, files that don't have a remaining time (= that are not downloaded yet) are sorted right after the ones that are going to be available.
Seems more logical to sort this way:
- first, files that are not downloaded at the moment,
- then files that take time,
- then files you will get so soon.
This way, we could see easily which file we will get sooner, just by clicking "sort by remaining time" and seeing immediatly the first of the list, instead of looking for them right after the (may be) long list of files waiting.
So.. here is the simple patch:
*** DownloadListCtrl.cpp~ 2010-12-29 15:26:04.000000000 +0100
--- DownloadListCtrl.cpp 2011-01-09 19:42:40.000000000 +0100
***************
*** 1188,1198 ****
if (file2->getTimeRemaining() == -1) {
result = 0;
} else {
! result = -1;
}
} else {
if (file2->getTimeRemaining() == -1) {
! result = 1;
} else {
result = CmpAny(
file1->getTimeRemaining(),
--- 1188,1198 ----
if (file2->getTimeRemaining() == -1) {
result = 0;
} else {
! result = 1;
}
} else {
if (file2->getTimeRemaining() == -1) {
! result = -1;
} else {
result = CmpAny(
file1->getTimeRemaining(),
Applies to amule/src/DownloadListCtrl.cpp
So long, and thanks for
the fish this awesome multiplatform ed2k/Kad P2P software!
