diff options
author | aunsane <aunsane@gmail.com> | 2017-04-26 23:29:30 +0300 |
---|---|---|
committer | aunsane <aunsane@gmail.com> | 2017-04-26 23:29:30 +0300 |
commit | 37bd274cc2581512307abb78e7dd6800dd69e90c (patch) | |
tree | d2f17bf4905dcb27f738c81bc7f91ca5bf7e9f83 /plugins/CloudFile/src/file_transfer.h | |
parent | e12dfaff436fe7d882d065f3a724c39eadc67033 (diff) |
CloudFile: fix sending to metacontacs
Diffstat (limited to 'plugins/CloudFile/src/file_transfer.h')
-rw-r--r-- | plugins/CloudFile/src/file_transfer.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/CloudFile/src/file_transfer.h b/plugins/CloudFile/src/file_transfer.h index 53c9ef0545..e7daa3a2a9 100644 --- a/plugins/CloudFile/src/file_transfer.h +++ b/plugins/CloudFile/src/file_transfer.h @@ -193,10 +193,10 @@ public: { size_t chunkSize = 1024 * 1024; if (pfts.currentFileSize < chunkSize) - chunkSize = min(pfts.currentFileSize, chunkSize / 4, 1); + chunkSize = min(pfts.currentFileSize, chunkSize / 4); else if (pfts.currentFileSize > 20 * chunkSize) chunkSize = chunkSize * 4; - return chunkSize; + return chunkSize ? chunkSize : 1; } void Progress(size_t count) |