Skip to content

Commit

Permalink
Fix capsMaxChunkSize comparison
Browse files Browse the repository at this point in the history
Signed-off-by: Claudio Cambra <[email protected]>
  • Loading branch information
claucambra committed Jan 20, 2025
1 parent db494ce commit b6c1d7c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/folder.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1154,7 +1154,7 @@ SyncOptions Folder::initializeSyncOptions() const
opt._parallelNetworkJobs = account->isHttp2Supported() ? 20 : 6;

// Chunk V2: Size of chunks must be between 5MB and 5GB, except for the last chunk which can be smaller
if (const auto capsMaxChunkSize = account->capabilities().maxChunkSize(); capsMaxChunkSize <= 0 && !cfgFile.overrideServerChunkSize) {
if (const auto capsMaxChunkSize = account->capabilities().maxChunkSize(); capsMaxChunkSize > 0 && !cfgFile.overrideServerChunkSize) {
opt.setMinChunkSize(capsMaxChunkSize);
opt.setMaxChunkSize(capsMaxChunkSize);
opt._initialChunkSize = capsMaxChunkSize;
Expand Down

0 comments on commit b6c1d7c

Please sign in to comment.