Changeset 9466
- Timestamp:
- Nov 1, 2009, 3:56:10 AM (13 years ago)
- Location:
- trunk/libtransmission
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/libtransmission/peer-mgr.c
r9465 r9466 90 90 /* this is how many blocks we'll try to queue up 91 91 * for the iterator to walk through */ 92 ITERATOR_BLOCK_BUFFER_SIZE = 2048,92 ITERATOR_BLOCK_BUFFER_SIZE = 4096, 93 93 94 94 /* if the number of blocks in the iterator queue drops -
trunk/libtransmission/peer-msgs.c
r9465 r9466 41 41 #include "version.h" 42 42 43 // #ifdef TRACK_DUPES 44 43 45 /** 44 46 *** … … 459 461 } 460 462 463 #ifdef TRACK_DUPES 461 464 static double blocksGotten = 0.0; 465 #endif 462 466 463 467 static void … … 465 469 { 466 470 tr_peer_event e = blankEvent; 471 #ifdef TRACK_DUPES 467 472 ++blocksGotten; 473 #endif 468 474 e.eventType = TR_PEER_CLIENT_GOT_BLOCK; 469 475 e.pieceIndex = req->index; … … 1562 1568 clientGotUnwantedBlock( tr_peermsgs * msgs, const struct peer_request * req ) 1563 1569 { 1570 #ifdef TRACK_DUPES 1564 1571 static double unwantedGotten = 0.0; 1565 1572 fprintf( stderr, "dupe ratio: %f\n", ++unwantedGotten / blocksGotten ); 1573 #endif 1566 1574 decrementDownloadedCount( msgs, req->length ); 1567 1575 }
Note: See TracChangeset
for help on using the changeset viewer.