Changeset 11527
- Timestamp:
- Dec 12, 2010, 11:27:30 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libtransmission/peer-mgr.c
r11506 r11527 3480 3480 const int maxCandidates = tr_sessionGetPeerLimit( session ) * 0.95; 3481 3481 3482 /* don't start any new handshakes if we 're full up*/3482 /* don't start any new handshakes if we have enough peers */ 3483 3483 n = 0; 3484 3484 tor= NULL; … … 3502 3502 { 3503 3503 int i, nAtoms; 3504 tr_bool full_up; 3505 tr_bool full_dn; 3504 3506 struct peer_atom ** atoms; 3505 3507 … … 3512 3514 3513 3515 /* if we've already got enough speed in this torrent... */ 3514 if( tr_torrentIsSeed( tor ) && isBandwidthMaxedOut( tor->bandwidth, now_msec, TR_UP ) ) 3516 full_up = isBandwidthMaxedOut( tor->bandwidth, now_msec, TR_UP ); 3517 full_dn = isBandwidthMaxedOut( tor->bandwidth, now_msec, TR_DOWN ); 3518 if( full_up && full_dn ) 3519 continue; 3520 if( full_up && tr_torrentIsSeed( tor ) ) 3515 3521 continue; 3516 3522
Note: See TracChangeset
for help on using the changeset viewer.