Changeset 11528


Ignore:
Timestamp:
Dec 12, 2010, 11:29:52 PM (11 years ago)
Author:
charles
Message:

(trunk libT) #3656 "endgame could be faster" -- another experimental patch, added to trunk for reality testing in the nightly builds.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/libtransmission/peer-mgr.c

    r11527 r11528  
    10941094        struct weighted_piece * p = pieces + i;
    10951095        const int missing = tr_cpMissingBlocksInPiece( &tor->completion, p->index );
    1096         const int maxDuplicatesPerBlock = endgame ? 3 : 1;
    1097 
    1098         if( p->requestCount > ( missing * maxDuplicatesPerBlock ) )
     1096
     1097        if( !endgame && ( p->requestCount > missing ) )
    10991098            continue;
    11001099
     
    11161115
    11171116                /* don't send the same request to any peer too many times */
    1118                 if( countBlockRequests( t, b ) >= maxDuplicatesPerBlock )
     1117                if( !endgame && countBlockRequests( t, b ) )
    11191118                    continue;
    11201119
Note: See TracChangeset for help on using the changeset viewer.