Ignore:
Timestamp:
Apr 16, 2011, 9:46:32 PM (11 years ago)
Author:
jordan
Message:

(trunk libT) changes to the bandwidth allocator's phaseOne step as suggested by Vincent in #2338 comment:108

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/bandwidth.c

    r12280 r12361  
    224224    dbgmsg( "%d peers to go round-robin for %s", n, (dir==TR_UP?"upload":"download") );
    225225    i = n ? tr_cryptoWeakRandInt( n ) : 0; /* pick a random starting point */
    226     while( n > 1 )
    227     {
    228         const size_t increment = 512;//1024;
     226    while( n > 0 )
     227    {
     228        const size_t increment = 1024;
    229229        const int bytesUsed = tr_peerIoFlush( peers[i], dir, increment );
    230230
     
    241241        }
    242242
    243         if( i == n )
     243        if( i >= n )
    244244            i = 0;
    245245    }
Note: See TracChangeset for help on using the changeset viewer.