Changeset 2503
- Timestamp:
- Jul 26, 2007, 3:57:45 AM (15 years ago)
- Location:
- trunk/libtransmission
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libtransmission/peer.c
r2501 r2503 686 686 into "pool" to reduce such overlap */ 687 687 int piecesLeft = poolSize; 688 int p = (int)(tr_date() % poolSize);688 int p = piecesLeft ? tr_rand(piecesLeft) : 0; 689 689 for( ; openSlots>0 && piecesLeft>0; --piecesLeft, p=(p+1)%poolSize ) 690 690 { -
trunk/libtransmission/utils.c
r2495 r2503 169 169 { 170 170 static int init = 0; 171 172 assert( sup > 0 ); 173 171 174 if( !init ) 172 175 {
Note: See TracChangeset
for help on using the changeset viewer.