зеркало из https://github.com/nextcloud/desktop.git
Merge pull request #7161 from nextcloud/bugfix/changeDefaultChunkSize
changing default chunk size to 100MB
This commit is contained in:
Коммит
c44d29d91c
|
@ -244,7 +244,7 @@ int ConfigFile::timeout() const
|
||||||
qint64 ConfigFile::chunkSize() const
|
qint64 ConfigFile::chunkSize() const
|
||||||
{
|
{
|
||||||
QSettings settings(configFile(), QSettings::IniFormat);
|
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
|
qint64 ConfigFile::maxChunkSize() const
|
||||||
|
|
|
@ -55,7 +55,7 @@ public:
|
||||||
* starting value and is then gradually adjusted within the
|
* starting value and is then gradually adjusted within the
|
||||||
* minChunkSize / maxChunkSize bounds.
|
* 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.
|
/** The target duration of chunk uploads for dynamic chunk sizing.
|
||||||
*
|
*
|
||||||
|
|
|
@ -33,7 +33,7 @@ private slots:
|
||||||
{"chunking", "1.0"},
|
{"chunking", "1.0"},
|
||||||
{"httpErrorCodesThatResetFailingChunkedUploads", QVariantList{500} } } } });
|
{"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);
|
fakeFolder.localModifier().insert("A/a0", size);
|
||||||
QDateTime modTime = QDateTime::currentDateTime();
|
QDateTime modTime = QDateTime::currentDateTime();
|
||||||
fakeFolder.localModifier().setModTime("A/a0", modTime);
|
fakeFolder.localModifier().setModTime("A/a0", modTime);
|
||||||
|
|
Загрузка…
Ссылка в новой задаче