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>
|
2008-11-10 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||||
|
|
||||||
Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
|
Fixed the bug that DefaultPieceStorage::getCompletedLength() returns
|
||||||
|
|
|
@ -132,10 +132,8 @@ std::string DefaultBtAnnounce::getAnnounceUrl() {
|
||||||
numWant = 0;
|
numWant = 0;
|
||||||
}
|
}
|
||||||
TransferStat stat = peerStorage->calculateStat();
|
TransferStat stat = peerStorage->calculateStat();
|
||||||
uint64_t left = pieceStorage->getTotalLength()-pieceStorage->getCompletedLength();
|
uint64_t left =
|
||||||
if(left < 0) {
|
pieceStorage->getTotalLength()-pieceStorage->getCompletedLength();
|
||||||
left = 0;
|
|
||||||
}
|
|
||||||
std::string url = announceList.getAnnounce()+
|
std::string url = announceList.getAnnounce()+
|
||||||
"?info_hash="+Util::torrentUrlencode(btContext->getInfoHash(),
|
"?info_hash="+Util::torrentUrlencode(btContext->getInfoHash(),
|
||||||
btContext->getInfoHashLength())+
|
btContext->getInfoHashLength())+
|
||||||
|
|
Loading…
Reference in New Issue