Changeset 7763


Ignore:
Timestamp:
Jan 20, 2009, 5:45:03 AM (12 years ago)
Author:
charles
Message:

(trunk libT) bah, fix r7761 oops

File:
1 edited

Legend:

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

    r7761 r7763  
    22162216
    22172217        maxCandidates = nCandidates;
    2218         maxCandidates = MAX( maxCandidates, MAX_RECONNECTIONS_PER_PULSE );
    2219         maxCandidates = MAX( maxCandidates, getMaxPeerCount( t->tor ) - getPeerCount( t ) );
    2220         maxCandidates = MAX( maxCandidates, MAX_CONNECTIONS_PER_SECOND - newConnectionsThisSecond );
     2218        maxCandidates = MIN( maxCandidates, MAX_RECONNECTIONS_PER_PULSE );
     2219        maxCandidates = MIN( maxCandidates, getMaxPeerCount( t->tor ) - getPeerCount( t ) );
     2220        maxCandidates = MIN( maxCandidates, MAX_CONNECTIONS_PER_SECOND - newConnectionsThisSecond );
    22212221
    22222222        //if( nBad || nCandidates )
Note: See TracChangeset for help on using the changeset viewer.