Changeset 7763
- Timestamp:
- Jan 20, 2009, 5:45:03 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libtransmission/peer-mgr.c
r7761 r7763 2216 2216 2217 2217 maxCandidates = nCandidates; 2218 maxCandidates = M AX( maxCandidates, MAX_RECONNECTIONS_PER_PULSE );2219 maxCandidates = M AX( maxCandidates, getMaxPeerCount( t->tor ) - getPeerCount( t ) );2220 maxCandidates = M AX( 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 ); 2221 2221 2222 2222 //if( nBad || nCandidates )
Note: See TracChangeset
for help on using the changeset viewer.