Changeset 7285


Ignore:
Timestamp:
Dec 5, 2008, 4:14:00 PM (12 years ago)
Author:
charles
Message:

(1.3x libT) backport of #1471: better heuristics for which peers to unchoke

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/1.3x/libtransmission/peer-mgr.c

    r6768 r7285  
    15481548    int diff = 0;
    15491549
    1550     if( diff == 0 ) /* prefer higher dl speeds */
    1551         diff = -tr_compareDouble( a->peer->rateToClient, b->peer->rateToClient );
    15521550    if( diff == 0 ) /* prefer higher ul speeds */
    15531551        diff = -tr_compareDouble( a->peer->rateToPeer, b->peer->rateToPeer );
    15541552    if( diff == 0 ) /* prefer unchoked */
    15551553        diff = (int)a->peer->peerIsChoked - (int)b->peer->peerIsChoked;
     1554    if( diff == 0 ) /* prefer higher dl speeds */
     1555        diff = -tr_compareDouble( a->peer->rateToClient, b->peer->rateToClient );
    15561556
    15571557    return diff;
Note: See TracChangeset for help on using the changeset viewer.