Ignore:
Timestamp:
Nov 1, 2009, 2:10:47 AM (13 years ago)
Author:
charles
Message:

(trunk libT) #2548: T's request queue can send out too many duplicate requests

File:
1 edited

Legend:

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

    r9434 r9465  
    459459}
    460460
     461static double blocksGotten = 0.0;
     462
    461463static void
    462464fireGotBlock( tr_peermsgs * msgs, const struct peer_request * req )
    463465{
    464466    tr_peer_event e = blankEvent;
     467++blocksGotten;
    465468    e.eventType = TR_PEER_CLIENT_GOT_BLOCK;
    466469    e.pieceIndex = req->index;
     
    15591562clientGotUnwantedBlock( tr_peermsgs * msgs, const struct peer_request * req )
    15601563{
     1564static double unwantedGotten = 0.0;
     1565fprintf( stderr, "dupe ratio: %f\n", ++unwantedGotten / blocksGotten );
    15611566    decrementDownloadedCount( msgs, req->length );
    15621567}
Note: See TracChangeset for help on using the changeset viewer.