(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,
|
MC_UP, &uploadedEverB,
|
||||||
-1 );
|
-1 );
|
||||||
|
|
||||||
ia = (int)( 100.0 * percentDoneA );
|
ia = (int)( rateUpA + rateDownA );
|
||||||
ib = (int)( 100.0 * percentDoneB );
|
ib = (int)( rateUpB + rateDownB );
|
||||||
if( ia != ib )
|
if( ia != ib )
|
||||||
return ia - ib;
|
return ia - ib;
|
||||||
|
|
||||||
ia = (int)( rateUpA + rateDownA );
|
ia = (int)( 100.0 * percentDoneA );
|
||||||
ib = (int)( rateUpB + rateDownB );
|
ib = (int)( 100.0 * percentDoneB );
|
||||||
if( ia != ib )
|
if( ia != ib )
|
||||||
return ia - ib;
|
return ia - ib;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue