Changeset 9466


Ignore:
Timestamp:
Nov 1, 2009, 3:56:10 AM (12 years ago)
Author:
charles
Message:

(trunk libT) turn off a debugging message in the terminal

Location:
trunk/libtransmission
Files:
2 edited

Legend:

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

    r9465 r9466  
    9090    /* this is how many blocks we'll try to queue up
    9191     * for the iterator to walk through */
    92     ITERATOR_BLOCK_BUFFER_SIZE = 2048,
     92    ITERATOR_BLOCK_BUFFER_SIZE = 4096,
    9393
    9494    /* if the number of blocks in the iterator queue drops
  • trunk/libtransmission/peer-msgs.c

    r9465 r9466  
    4141#include "version.h"
    4242
     43// #ifdef TRACK_DUPES
     44
    4345/**
    4446***
     
    459461}
    460462
     463#ifdef TRACK_DUPES
    461464static double blocksGotten = 0.0;
     465#endif
    462466
    463467static void
     
    465469{
    466470    tr_peer_event e = blankEvent;
     471#ifdef TRACK_DUPES
    467472++blocksGotten;
     473#endif
    468474    e.eventType = TR_PEER_CLIENT_GOT_BLOCK;
    469475    e.pieceIndex = req->index;
     
    15621568clientGotUnwantedBlock( tr_peermsgs * msgs, const struct peer_request * req )
    15631569{
     1570#ifdef TRACK_DUPES
    15641571static double unwantedGotten = 0.0;
    15651572fprintf( stderr, "dupe ratio: %f\n", ++unwantedGotten / blocksGotten );
     1573#endif
    15661574    decrementDownloadedCount( msgs, req->length );
    15671575}
Note: See TracChangeset for help on using the changeset viewer.