Changeset 3461


Ignore:
Timestamp:
Oct 18, 2007, 9:32:37 PM (15 years ago)
Author:
charles
Message:

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

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/gtk/tr_core.c

    r3449 r3461  
    221221                                  -1 );
    222222
     223    ia = (int)( rateUpA + rateDownA );
     224    ib = (int)( rateUpB + rateDownB );
     225    if( ia != ib )
     226        return ia - ib;
     227
    223228    ia = (int)( 100.0 * percentDoneA );
    224229    ib = (int)( 100.0 * percentDoneB );
    225     if( ia != ib )
    226         return ia - ib;
    227 
    228     ia = (int)( rateUpA + rateDownA );
    229     ib = (int)( rateUpB + rateDownB );
    230230    if( ia != ib )
    231231        return ia - ib;
Note: See TracChangeset for help on using the changeset viewer.