fix condition for parallel download

This commit is contained in:
Or Ozeri 2017-12-04 16:07:33 +02:00
parent 566961c7a5
commit 0da87e75fe

View File

@ -1155,7 +1155,7 @@ int FdEntity::Load(off_t start, size_t size)
size_t over_size = (*iter)->bytes - need_load_size; size_t over_size = (*iter)->bytes - need_load_size;
// download // download
if(static_cast<size_t>(2 * S3fsCurl::GetMultipartSize()) < need_load_size && !nomultipart){ // default 20MB if(static_cast<size_t>(2 * S3fsCurl::GetMultipartSize()) <= need_load_size && !nomultipart){ // default 20MB
// parallel request // parallel request
// Additional time is needed for large files // Additional time is needed for large files
time_t backup = 0; time_t backup = 0;