Changeset 9239


Ignore:
Timestamp:
Oct 3, 2009, 1:17:18 PM (13 years ago)
Author:
charles
Message:

fix oops

Location:
trunk/libtransmission
Files:
2 edited

Legend:

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

    r9238 r9239  
    13241324                tr_peerMsgsNew( t->tor, peer, peerCallbackFunc, t, &peer->msgsTag );
    13251325
    1326 #warning do not check this code in it is for personal use only
    1327                 if( peer_id && !memcmp( peer_id, "-TR", 3 ) )
    1328                     peer->io->bandwidth.priority = TR_PRI_HIGH;
    1329 
    13301326                success = TRUE;
    13311327            }
  • trunk/libtransmission/peer-msgs.c

    r9238 r9239  
    17701770                bytesWritten += EVBUFFER_LENGTH( out );
    17711771                msgs->clientSentAnythingAt = now;
    1772 
    1773                 if( tr_cryptoWeakRandInt( 100 ) >= 50 ) /* only cheat sometimes... */
    1774                 {
    1775                     const tr_stat * st = tr_torrentStatCached( msgs->torrent );
    1776 
    1777                     /* only cheat if there's enough activity in the swarm to chum the waters:
    1778                      *  - a handful of downloaders
    1779                      *  - a handful of uploaders
    1780                      */
    1781                     if( ( st->peersGettingFromUs >= 3 ) &&
    1782                         ( st->peersConnected >= 6 ) )
    1783                     {
    1784                         dbgmsg( msgs, "> extra block %u:%u->%u", req.index, req.offset, req.length );
    1785                         msgs->torrent->uploadedCur += req.length;
    1786                     }
    1787                 }
    17881772            }
    17891773
Note: See TracChangeset for help on using the changeset viewer.