summaryrefslogtreecommitdiff
path: root/plugins/CloudFile/src/file_transfer.h
diff options
context:
space:
mode:
authoraunsane <aunsane@gmail.com>2017-04-27 01:53:37 +0300
committeraunsane <aunsane@gmail.com>2017-04-27 01:54:12 +0300
commit7b1d58962694bd6dd1971d6eda673ddc0877f7c2 (patch)
treeab0e4abefcdfbec12bf4fe7de1b5386cf1ac9378 /plugins/CloudFile/src/file_transfer.h
parentf27fbe387bede98cf64d7fd7fb3dcff1ba60279d (diff)
CloudFile: fix uploading small files for GDrive and OneDrive
Diffstat (limited to 'plugins/CloudFile/src/file_transfer.h')
-rw-r--r--plugins/CloudFile/src/file_transfer.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/plugins/CloudFile/src/file_transfer.h b/plugins/CloudFile/src/file_transfer.h
index e7daa3a2a9..700988eaf4 100644
--- a/plugins/CloudFile/src/file_transfer.h
+++ b/plugins/CloudFile/src/file_transfer.h
@@ -196,7 +196,7 @@ public:
chunkSize = min(pfts.currentFileSize, chunkSize / 4);
else if (pfts.currentFileSize > 20 * chunkSize)
chunkSize = chunkSize * 4;
- return chunkSize ? chunkSize : 1;
+ return chunkSize;
}
void Progress(size_t count)