Changeset 11553


Ignore:
Timestamp:
Dec 20, 2010, 12:44:16 PM (11 years ago)
Author:
charles
Message:

(trunk libT) revert experimental patch r11527 from #3658

File:
1 edited

Legend:

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

    r11533 r11553  
    34893489    const int maxCandidates = tr_sessionGetPeerLimit( session ) * 0.95;
    34903490
    3491     /* don't start any new handshakes if we have enough peers */
     3491    /* don't start any new handshakes if we're full up */
    34923492    n = 0;
    34933493    tor= NULL;
     
    35113511    {
    35123512        int i, nAtoms;
    3513         tr_bool full_up;
    3514         tr_bool full_dn;
    35153513        struct peer_atom ** atoms;
    35163514
     
    35233521
    35243522        /* if we've already got enough speed in this torrent... */
    3525         full_up = isBandwidthMaxedOut( tor->bandwidth, now_msec, TR_UP );
    3526         full_dn = isBandwidthMaxedOut( tor->bandwidth, now_msec, TR_DOWN );
    3527         if( full_up && full_dn )
    3528             continue;
    3529         if( full_up && tr_torrentIsSeed( tor ) )
     3523        if( tr_torrentIsSeed( tor ) && isBandwidthMaxedOut( tor->bandwidth, now_msec, TR_UP ) )
    35303524            continue;
    35313525
Note: See TracChangeset for help on using the changeset viewer.