Changeset 2989
- Timestamp:
- Sep 9, 2007, 12:29:59 AM (16 years ago)
- Location:
- branches/encryption/libtransmission
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/encryption/libtransmission/peer-mgr.c
r2988 r2989 307 307 if( t->blocks[i].have || t->blocks[i].dnd ) 308 308 continue; 309 309 310 if( !size ) { /* all peers full */ 310 311 fprintf( stderr, "all peers full...\n" ); … … 626 627 627 628 void 629 tr_peerMgrUpdateCompletion( tr_peerMgr * manager, 630 const uint8_t * torrentHash ) 631 { 632 uint32_t i; 633 Torrent * t = getExistingTorrent( manager, torrentHash ); 634 635 for( i=0; i<t->blockCount; ++i ) { 636 assert( t->blocks[i].block == i ); 637 t->blocks[i].have = tr_cpBlockIsComplete( t->tor->completion, i ) ? 1 : 0; 638 } 639 } 640 641 void 628 642 tr_peerMgrAddTorrent( tr_peerMgr * manager, 629 643 tr_torrent * tor ) -
branches/encryption/libtransmission/peer-mgr.h
r2978 r2989 73 73 struct tr_torrent * tor ); 74 74 75 void tr_peerMgrUpdateCompletion( tr_peerMgr * manager, 76 const uint8_t * torrentHash ); 77 78 75 79 void tr_peerMgrRemoveTorrent( tr_peerMgr * manager, 76 80 const uint8_t * torrentHash ); -
branches/encryption/libtransmission/torrent.c
r2988 r2989 268 268 { 269 269 fprintf( stderr, "recheck done -- setting torrent %s to %d\n", tor->info.name, tor->runStatusAfterCheck ); 270 tr_peerMgrUpdateCompletion( tor->handle->peerMgr, tor->info.hash ); 270 271 tor->runStatus = tor->runStatusAfterCheck; 271 272 fastResumeSave( tor );
Note: See TracChangeset
for help on using the changeset viewer.