mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-22 13:05:51 +03:00
Merge pull request #7161 from nextcloud/bugfix/changeDefaultChunkSize
changing default chunk size to 100MB
This commit is contained in:
commit
c44d29d91c
3 changed files with 3 additions and 3 deletions
|
@ -244,7 +244,7 @@ int ConfigFile::timeout() const
|
|||
qint64 ConfigFile::chunkSize() const
|
||||
{
|
||||
QSettings settings(configFile(), QSettings::IniFormat);
|
||||
return settings.value(QLatin1String(chunkSizeC), 10LL * 1000LL * 1000LL).toLongLong(); // default to 10 MB
|
||||
return settings.value(QLatin1String(chunkSizeC), 100LL * 1024LL * 1024LL).toLongLong(); // 100MiB
|
||||
}
|
||||
|
||||
qint64 ConfigFile::maxChunkSize() const
|
||||
|
|
|
@ -55,7 +55,7 @@ public:
|
|||
* starting value and is then gradually adjusted within the
|
||||
* minChunkSize / maxChunkSize bounds.
|
||||
*/
|
||||
qint64 _initialChunkSize = 10 * 1000 * 1000; // 10MB
|
||||
qint64 _initialChunkSize = 100LL * 1024LL * 1024LL; // 100MiB
|
||||
|
||||
/** The target duration of chunk uploads for dynamic chunk sizing.
|
||||
*
|
||||
|
|
|
@ -33,7 +33,7 @@ private slots:
|
|||
{"chunking", "1.0"},
|
||||
{"httpErrorCodesThatResetFailingChunkedUploads", QVariantList{500} } } } });
|
||||
|
||||
const int size = 100 * 1000 * 1000; // 100 MB
|
||||
const auto size = 200LL * 1024LL * 1024LL; // 200 MiB
|
||||
fakeFolder.localModifier().insert("A/a0", size);
|
||||
QDateTime modTime = QDateTime::currentDateTime();
|
||||
fakeFolder.localModifier().setModTime("A/a0", modTime);
|
||||
|
|
Loading…
Reference in a new issue