summaryrefslogtreecommitdiff
path: root/plugins/CloudFile/src/file_transfer.h
diff options
context:
space:
mode:
authoraunsane <aunsane@gmail.com>2017-04-23 13:50:22 +0300
committeraunsane <aunsane@gmail.com>2017-04-23 13:50:22 +0300
commit3aac528057ce49c8497211a4348df5363af17e1e (patch)
tree2a4c1b8cad10d59bd5fd1682a1d62a6925001abf /plugins/CloudFile/src/file_transfer.h
parent5048672e81f3ee9aa864ef9d736a3d74da051754 (diff)
CloudFile: implement GDrive upload
Diffstat (limited to 'plugins/CloudFile/src/file_transfer.h')
-rw-r--r--plugins/CloudFile/src/file_transfer.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/plugins/CloudFile/src/file_transfer.h b/plugins/CloudFile/src/file_transfer.h
index 16f515f856..700988eaf4 100644
--- a/plugins/CloudFile/src/file_transfer.h
+++ b/plugins/CloudFile/src/file_transfer.h
@@ -189,9 +189,9 @@ public:
return pfts.currentFileSize;
}
- const uint64_t GetCurrentFileChunkSize() const
+ const size_t GetCurrentFileChunkSize() const
{
- int chunkSize = 1024 * 1024;
+ size_t chunkSize = 1024 * 1024;
if (pfts.currentFileSize < chunkSize)
chunkSize = min(pfts.currentFileSize, chunkSize / 4);
else if (pfts.currentFileSize > 20 * chunkSize)