Changeset 10746


Ignore:
Timestamp:
Jun 13, 2010, 8:54:03 PM (12 years ago)
Author:
livings124
Message:

trivial improvement to compareSeedProbabilities()

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/peer-mgr.c

    r10744 r10746  
    32863286       3. prefer unknown to seeds (FIXME: this is a simplistic test) */
    32873287    if( a == 100 ) a = 101;
     3288    else if( a == -1 ) a = 100;
     3289
    32883290    if( b == 100 ) b = 101;
    3289     if( a == -1 ) a = 100;
    3290     if( b == -1 ) b = 100;
    3291     return a - b;
     3291    else if( b == -1 ) b = 100;
     3292
     3293    return a > b ? 1 : -1;
    32923294}
    32933295
Note: See TracChangeset for help on using the changeset viewer.