mirror of https://github.com/aria2/aria2
2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
Fixed bufSize calculation * src/DownloadCommand.ccpull/1/head
parent
30b65f79e7
commit
5562636c99
|
@ -1,3 +1,8 @@
|
|||
2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||
|
||||
Fixed bufSize calculation
|
||||
* src/DownloadCommand.cc
|
||||
|
||||
2009-07-01 Tatsuhiro Tsujikawa <t-tujikawa@users.sourceforge.net>
|
||||
|
||||
Don't append "/" if base URI ends with "/".
|
||||
|
|
|
@ -121,7 +121,7 @@ bool DownloadCommand::executeInternal() {
|
|||
bufSize = std::min(segment->getLength()-segment->getWrittenLength(),
|
||||
BUFSIZE);
|
||||
} else {
|
||||
bufSize = std::min(static_cast<size_t>(_fileEntry->getLastOffset()-_fileEntry->gtoloff(segment->getPositionToWrite())), BUFSIZE);
|
||||
bufSize = std::min(static_cast<size_t>(_fileEntry->getLastOffset()-segment->getPositionToWrite()), BUFSIZE);
|
||||
}
|
||||
} else {
|
||||
bufSize = BUFSIZE;
|
||||
|
|
Loading…
Reference in New Issue