mirror of https://github.com/aria2/aria2
Pass totalLength to DiskWriter::openExistingFile
parent
f9ac6bb6fd
commit
e36fadac88
|
@ -48,7 +48,7 @@ void AbstractSingleDiskAdaptor::closeFile() {
|
|||
}
|
||||
|
||||
void AbstractSingleDiskAdaptor::openExistingFile() {
|
||||
diskWriter->openExistingFile(getFilePath());
|
||||
diskWriter->openExistingFile(getFilePath(), totalLength);
|
||||
}
|
||||
|
||||
void AbstractSingleDiskAdaptor::writeData(const unsigned char* data, int32_t len, int64_t offset) {
|
||||
|
|
|
@ -68,7 +68,7 @@ public:
|
|||
|
||||
void openExistingFile(const string& topDir)
|
||||
{
|
||||
diskWriter->openExistingFile(getFilePath(topDir));
|
||||
diskWriter->openExistingFile(getFilePath(topDir), fileEntry->getLength());
|
||||
}
|
||||
|
||||
void closeFile()
|
||||
|
|
Loading…
Reference in New Issue