Searched refs:GetNPieces (Results 1 – 9 of 9) sorted by relevance
92 BTCONTENT.CheckedPieces() >= BTCONTENT.GetNPieces() ) return 1; in Need_Remote_Data()113 m_cached_idx = m_last_req_piece = BTCONTENT.GetNPieces(); in btPeer()214 BTCONTENT.GetNPieces() ){ in RequestPiece()226 m_cached_idx = BTCONTENT.GetNPieces(); in RequestPiece()253 if( idx < BTCONTENT.GetNPieces() ){ in RequestPiece()288 else if( m_last_req_piece < BTCONTENT.GetNPieces() && in RequestPiece()291 m_last_req_piece = BTCONTENT.GetNPieces(); in RequestPiece()312 if( idx < BTCONTENT.GetNPieces() ){ in RequestPiece()339 }else if( BTCONTENT.CheckedPieces() >= BTCONTENT.GetNPieces() ){ in RequestPiece()442 if( m_cached_idx >= BTCONTENT.GetNPieces() || m_standby || in MsgDeliver()[all …]
63 if( BTCONTENT.CheckedPieces() < BTCONTENT.GetNPieces() && in Downloader()67 (int)(BTCONTENT.CheckedPieces()), (int)(BTCONTENT.GetNPieces())); in Downloader()
540 endgame = idx < BTCONTENT.GetNPieces(); // else initial-piece mode in What_Can_Duplicate()546 if( !data ) return BTCONTENT.GetNPieces(); in What_Can_Duplicate()554 else return BTCONTENT.GetNPieces(); in What_Can_Duplicate()558 data[0].idx = BTCONTENT.GetNPieces(); in What_Can_Duplicate()570 piece = BTCONTENT.GetNPieces(); in What_Can_Duplicate()582 while( data[i].idx < BTCONTENT.GetNPieces() && pass < 2 ){ in What_Can_Duplicate()591 if( data[i].idx == BTCONTENT.GetNPieces() ){ in What_Can_Duplicate()606 if( data[i].idx == BTCONTENT.GetNPieces() ) continue; in What_Can_Duplicate()616 return (mark < slots) ? data[mark].idx : BTCONTENT.GetNPieces(); in What_Can_Duplicate()811 idx = BTCONTENT.GetNPieces(); in RecalcDupReqs()[all …]
921 (int)(BTCONTENT.GetNPieces() - BTCONTENT.GetFilter()->Count()) ); in StatusLine0()925 if( BTCONTENT.CheckedPieces() < BTCONTENT.GetNPieces() ){ in StatusLine0()927 100 * BTCONTENT.CheckedPieces() / BTCONTENT.GetNPieces() ); in StatusLine0()939 (int)(BTCONTENT.GetNPieces()), in StatusLine0()980 all = BTCONTENT.GetNPieces() - BTCONTENT.GetFilter()->Count(); in StatusLine1()994 if( BTCONTENT.CheckedPieces() < BTCONTENT.GetNPieces() ){ in StatusLine1()996 100 * BTCONTENT.CheckedPieces() / BTCONTENT.GetNPieces() ); in StatusLine1()1004 100 * BTCONTENT.pBF->Count() / BTCONTENT.GetNPieces()); in StatusLine1()1015 all = BTCONTENT.GetNPieces() - BTCONTENT.pBMasterFilter->Count(); in StatusLine1()1048 }else if( BTCONTENT.CheckedPieces() < BTCONTENT.GetNPieces() ){ in StatusLine1()
36 BTCONTENT.GetNPieces(); } in GetRequestIdx()
130 size_t GetNPieces() const { return m_npieces; } in GetNPieces() function
464 return ( idx < BTCONTENT.GetNPieces() && in IsValidRequest()591 size_t idx = BTCONTENT.GetNPieces(); in ReAssign()
257 ntotal = BTCONTENT.GetNPieces(); in Send_Status()
1066 size_t percent = GetNPieces() / 100; in CheckExist()