mirror of
https://github.com/transmission/transmission
synced 2024-12-26 01:27:28 +00:00
(gtk) better sort-by-progress in the main window's torrent list
This commit is contained in:
parent
c53f69ef25
commit
781c3e2efd
1 changed files with 4 additions and 4 deletions
|
@ -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 a new issue