mirror of https://github.com/aria2/aria2
2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Removed unused code. * src/DefaultBtAnnounce.ccpull/1/head
parent
e5e19ddeb9
commit
bb8481e752
|
@ -1,3 +1,8 @@
|
|||
2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||
|
||||
Removed unused code.
|
||||
* src/DefaultBtAnnounce.cc
|
||||
|
||||
2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||
|
||||
Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
|
||||
|
|
|
@ -132,10 +132,8 @@ std::string DefaultBtAnnounce::getAnnounceUrl() {
|
|||
numWant = 0;
|
||||
}
|
||||
TransferStat stat = peerStorage->calculateStat();
|
||||
uint64_t left = pieceStorage->getTotalLength()-pieceStorage->getCompletedLength();
|
||||
if(left < 0) {
|
||||
left = 0;
|
||||
}
|
||||
uint64_t left =
|
||||
pieceStorage->getTotalLength()-pieceStorage->getCompletedLength();
|
||||
std::string url = announceList.getAnnounce()+
|
||||
"?info_hash="+Util::torrentUrlencode(btContext->getInfoHash(),
|
||||
btContext->getInfoHashLength())+
|
||||
|
|
Loading…
Reference in New Issue