mirror of https://github.com/aria2/aria2
2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Fixed the bug --bt-prioritize-piece=tail is not working. * src/util.ccpull/1/head
parent
a04279645b
commit
151c0348d7
|
@ -1,3 +1,8 @@
|
|||
2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||
|
||||
Fixed the bug --bt-prioritize-piece=tail is not working.
|
||||
* src/util.cc
|
||||
|
||||
2009-12-06 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||
|
||||
Release 1.7.0
|
||||
|
|
|
@ -591,7 +591,7 @@ void parsePrioritizePieceRange
|
|||
computeHeadPieces(indexes, fileEntries, pieceLength,
|
||||
std::max((int64_t)0, getRealSize(sizestr)));
|
||||
} else if((*i) == "tail") {
|
||||
computeHeadPieces(indexes, fileEntries, pieceLength, DEFAULT_SIZE);
|
||||
computeTailPieces(indexes, fileEntries, pieceLength, DEFAULT_SIZE);
|
||||
} else if(util::startsWith(*i, "tail=")) {
|
||||
std::string sizestr = std::string((*i).begin()+(*i).find("=")+1,
|
||||
(*i).end());
|
||||
|
|
Loading…
Reference in New Issue