(gtk) better sort-by-progress in the main window's torrent list
This commit is contained in:
parent
c53f69ef25
commit
781c3e2efd
|
@ -220,13 +220,13 @@ compareProgress( GtkTreeModel * model,
|
|||
MC_UP, &uploadedEverB,
|
||||
-1 );
|
||||
|
||||
ia = (int)( 100.0 * percentDoneA );
|
||||
ib = (int)( 100.0 * percentDoneB );
|
||||
ia = (int)( rateUpA + rateDownA );
|
||||
ib = (int)( rateUpB + rateDownB );
|
||||
if( ia != ib )
|
||||
return ia - ib;
|
||||
|
||||
ia = (int)( rateUpA + rateDownA );
|
||||
ib = (int)( rateUpB + rateDownB );
|
||||
ia = (int)( 100.0 * percentDoneA );
|
||||
ib = (int)( 100.0 * percentDoneB );
|
||||
if( ia != ib )
|
||||
return ia - ib;
|
||||
|
||||
|
|
Loading…
Reference in New Issue