Changeset 7586 for trunk/libtransmission/bandwidth.c
- Timestamp:
- Jan 2, 2009, 9:50:51 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libtransmission/bandwidth.c
r7580 r7586 23 23 #include "utils.h" 24 24 25 #define dbgmsg( ... ) \ 26 do { \ 27 if( tr_deepLoggingIsActive( ) ) \ 28 tr_deepLog( __FILE__, __LINE__, NULL, __VA_ARGS__ ); \ 29 } while( 0 ) 30 25 31 /*** 26 32 **** … … 213 219 * and/or peers that can use it */ 214 220 n = peerCount; 215 #ifdef DEBUG_DIRECTION 216 if( dir == DEBUG_DIRECTION ) fprintf( stderr, "bandwidth.c: allocate: number of peerIos to go round-robin: %d\n", n ); 217 #endif 221 dbgmsg( "direction %s ... %d pees to go round-robin", (dir==TR_UP?"UP":"DOWN"), n ); 218 222 i = n ? tr_cryptoWeakRandInt( n ) : 0; /* pick a random starting point */ 219 223 while( n > 1 )
Note: See TracChangeset
for help on using the changeset viewer.