Set default maxChunkSize to 1000MB
authorszaimen <szaimen@e.mail.de>
Thu, 13 May 2021 19:20:38 +0000 (21:20 +0200)
committerallexzander (Rebase PR Action) <allexzander@users.noreply.github.com>
Fri, 30 Jul 2021 07:00:09 +0000 (07:00 +0000)
Signed-off-by: szaimen <szaimen@e.mail.de>
doc/conffile.rst
src/libsync/configfile.cpp
src/libsync/syncoptions.h

index 6fa99e33c1bcd91aa85c33e4533e2b434fcbc1db..86b8f729a6d60e757061dbd491e0466dab345feb 100644 (file)
@@ -41,7 +41,7 @@ Some interesting values that can be set on the configuration file are:
 | ``chunkSize``                    | ``10000000`` (10 MB)   | Specifies the chunk size of uploaded files in bytes.                                                   |
 |                                  |                        | The client will dynamically adjust this size within the maximum and minimum bounds (see below).        |
 +----------------------------------+------------------------+--------------------------------------------------------------------------------------------------------+
-| ``maxChunkSize``                 | ``100000000`` (100 MB) | Specifies the maximum chunk size of uploaded files in bytes.                                           |
+| ``maxChunkSize``                 | ``1000000000`` (1000 MB) | Specifies the maximum chunk size of uploaded files in bytes.                                           |
 +----------------------------------+------------------------+--------------------------------------------------------------------------------------------------------+
 | ``minChunkSize``                 | ``1000000`` (1 MB)     | Specifies the minimum chunk size of uploaded files in bytes.                                           |
 +----------------------------------+------------------------+--------------------------------------------------------------------------------------------------------+
index ba5092729850ceab6439b86ff7cb3ad1c5e58199..fddd5ed88e6587ce3ece97147077586619eb7839 100644 (file)
@@ -228,7 +228,7 @@ qint64 ConfigFile::chunkSize() const
 qint64 ConfigFile::maxChunkSize() const
 {
     QSettings settings(configFile(), QSettings::IniFormat);
-    return settings.value(QLatin1String(maxChunkSizeC), 100 * 1000 * 1000).toLongLong(); // default to 100 MB
+    return settings.value(QLatin1String(maxChunkSizeC), 1000 * 1000 * 1000).toLongLong(); // default to 1000 MB
 }
 
 qint64 ConfigFile::minChunkSize() const
index f5dbb28d9cc6ccaef344a06dda560509665f3985..cc792aa9b1202e8b9254532367f3239ecdacbfef 100644 (file)
@@ -57,7 +57,7 @@ struct OWNCLOUDSYNC_EXPORT SyncOptions
     qint64 _minChunkSize = 1 * 1000 * 1000; // 1MB
 
     /** The maximum chunk size in bytes for chunked uploads */
-    qint64 _maxChunkSize = 100 * 1000 * 1000; // 100MB
+    qint64 _maxChunkSize = 1000 * 1000 * 1000; // 1000MB
 
     /** The target duration of chunk uploads for dynamic chunk sizing.
      *