Home
last modified time | relevance | path

Searched refs:getCompletedLength (Results 1 – 25 of 34) sorted by relevance

12

/dports/www/aria2/aria2-1.36.0/test/
H A DDefaultPieceStorageTest.cc236 CPPUNIT_ASSERT_EQUAL((int64_t)0LL, pss.getCompletedLength()); in testCompletePiece()
240 CPPUNIT_ASSERT_EQUAL((int64_t)128LL, pss.getCompletedLength()); in testCompletePiece()
244 CPPUNIT_ASSERT_EQUAL((int64_t)256LL, pss.getCompletedLength()); in testCompletePiece()
324 ps.getCompletedLength()); in testMarkPiecesDone()
333 CPPUNIT_ASSERT_EQUAL((int64_t)0, ps.getCompletedLength()); in testMarkPiecesDone()
342 CPPUNIT_ASSERT_EQUAL((int64_t)0, ps.getCompletedLength()); in testGetCompletedLength()
345 CPPUNIT_ASSERT_EQUAL((int64_t)250_m, ps.getCompletedLength()); in testGetCompletedLength()
354 CPPUNIT_ASSERT_EQUAL((int64_t)512_k, p->getCompletedLength()); in testGetCompletedLength()
358 CPPUNIT_ASSERT_EQUAL((int64_t)251_m, ps.getCompletedLength()); in testGetCompletedLength()
362 CPPUNIT_ASSERT_EQUAL((int64_t)256_m, ps.getCompletedLength()); in testGetCompletedLength()
H A DPieceTest.cc72 p.getCompletedLength()); in testGetCompletedLength()
/dports/www/aria2/aria2-1.36.0/src/
H A DConsoleStatCalc.cc110 if (rg->getCompletedLength() > 0) { in printSizeProgress()
113 << ((stat.allTimeUploadLength * 10) / rg->getCompletedLength()) / 10.0 in printSizeProgress()
124 o << sizeFormatter(rg->getCompletedLength()) << "B/" in printSizeProgress()
128 << 100 * rg->getCompletedLength() / rg->getTotalLength() << "%)"; in printSizeProgress()
177 (rg->getTotalLength() - rg->getCompletedLength()) / stat.downloadSpeed; in printProgress()
H A DPeerSessionResource.cc220 int64_t PeerSessionResource::getCompletedLength() const in getCompletedLength() function in aria2::PeerSessionResource
222 return bitfieldMan_->getCompletedLength(); in getCompletedLength()
H A DBitfieldMan.h70 int64_t getCompletedLength(bool useFilter) const;
249 int64_t getCompletedLength() const { return cachedCompletedLength_; } in getCompletedLength() function
H A DShareRatioSeedCriteria.cc54 int64_t completedLength = pieceStorage_->getCompletedLength(); in evaluate()
H A DDefaultPieceStorage.cc530 if (piece->getCompletedLength() == 0) { in cancelPiece()
556 int64_t DefaultPieceStorage::getCompletedLength() in getCompletedLength() function in aria2::DefaultPieceStorage
559 bitfieldMan_->getCompletedLength() + getInFlightPieceCompletedLength(); in getCompletedLength()
577 len += elem->getCompletedLength(); in getInFlightPieceCompletedLength()
587 len += elem->getCompletedLength(); in getInFlightPieceFilteredCompletedLength()
H A DUnknownLengthPieceStorage.h165 virtual int64_t getCompletedLength() CXX11_OVERRIDE;
169 return getCompletedLength(); in getFilteredCompletedLength()
H A DPeer.cc374 int64_t Peer::getCompletedLength() const in getCompletedLength() function in aria2::Peer
377 return res_->getCompletedLength(); in getCompletedLength()
H A DRequestGroup.h254 int64_t getCompletedLength() const;
258 return getTotalLength() - getCompletedLength(); in getPendingLength()
H A DPeerSessionResource.h197 int64_t getCompletedLength() const;
H A DPiece.cc190 int64_t Piece::getCompletedLength() { return bitfield_->getCompletedLength(); } in getCompletedLength() function in aria2::Piece
H A DDefaultBtAnnounce.cc159 pieceStorage_->getTotalLength() - pieceStorage_->getCompletedLength(); in getAnnounceUrl()
218 pieceStorage_->getTotalLength() - pieceStorage_->getCompletedLength(); in createUDPTrackerRequest()
H A DPeer.h252 int64_t getCompletedLength() const;
H A DPiece.h142 int64_t getCompletedLength();
H A DRequestGroup.cc908 int64_t RequestGroup::getCompletedLength() const in getCompletedLength() function in aria2::RequestGroup
918 return pieceStorage_->getCompletedLength(); in getCompletedLength()
1193 res->completedLength = getCompletedLength(); in createDownloadResult()
1222 int64_t completedLength = getCompletedLength(); in reportDownloadFinished()
H A DUnknownLengthPieceStorage.cc213 int64_t UnknownLengthPieceStorage::getCompletedLength() in getCompletedLength() function in aria2::UnknownLengthPieceStorage
H A DPieceStorage.h182 virtual int64_t getCompletedLength() = 0;
H A DBitfieldMan.cc823 int64_t BitfieldMan::getCompletedLength(bool useFilter) const in getCompletedLength() function in aria2::BitfieldMan
837 return getCompletedLength(false); in getCompletedLengthNow()
842 return getCompletedLength(true); in getFilteredCompletedLengthNow()
H A Daria2api.cc682 virtual int64_t getCompletedLength() CXX11_OVERRIDE in getCompletedLength() function
684 return group->getCompletedLength(); in getCompletedLength()
815 virtual int64_t getCompletedLength() CXX11_OVERRIDE in getCompletedLength() function
H A DDefaultBtInteractive.cc219 else if (pieceStorage_->getCompletedLength() > 0) { in addBitfieldMessageToQueue()
227 if (pieceStorage_->getCompletedLength() > 0) { in addBitfieldMessageToQueue()
/dports/www/aria2/aria2-1.36.0/examples/
H A Dlibaria2ex.cc130 << dh->getCompletedLength() << "/" << dh->getTotalLength() in main()
133 ? (100 * dh->getCompletedLength() / in main()
/dports/devel/kiwix-lib/kiwix-lib-9.4.1/include/
H A Ddownloader.h65 uint64_t getCompletedLength() { return m_completedLength; } in getCompletedLength() function
/dports/www/aria2/aria2-1.36.0/src/includes/aria2/
H A Daria2.h756 virtual int64_t getCompletedLength() = 0;
/dports/www/aria2/aria2-1.36.0/doc/manual-src/en/
H A Dlibaria2.rst166 << dh->getCompletedLength() << "/"
169 (100*dh->getCompletedLength()/dh->getTotalLength())

12