Changeset 3253
- Timestamp:
- Oct 1, 2007, 2:24:22 PM (15 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libtransmission/peer-mgr.c
r3248 r3253 483 483 uint32_t peerCount; 484 484 uint32_t fastAllowed; 485 uint32_t random; 485 486 }; 486 487 … … 503 504 return a->fastAllowed < b->fastAllowed ? -1 : 1; 504 505 505 /* otherwise go with the earlier piece*/506 return a->piece - b->piece;506 /* otherwise go with our random seed */ 507 return tr_compareUint32( a->random, b->random ); 507 508 } 508 509 … … 556 557 setme->peerCount = 0; 557 558 setme->fastAllowed = 0; 559 setme->random = tr_rand( UINT32_MAX ); 558 560 /* FIXME */ 559 561 // setme->fastAllowed = tr_bitfieldHas( t->tor->allowedList, i);
Note: See TracChangeset
for help on using the changeset viewer.