(gtk) better sort-by-progress in the main window's torrent list

This commit is contained in:
Charles Kerr 2007-10-18 21:32:37 +00:00
parent c53f69ef25
commit 781c3e2efd
1 changed files with 4 additions and 4 deletions

View File

@ -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;