Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/owncloud/client.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Goffart <ogoffart@woboq.com>2018-10-12 15:44:33 +0300
committerOlivier Goffart <ogoffart@woboq.com>2018-10-12 15:46:46 +0300
commit84c871c08700f2b43659446fedaa23e3fa616724 (patch)
tree6983207f46dfdc1b3947920b7e7bcb48c3586bd6 /src/libsync/owncloudpropagator.cpp
parentd62027db4ae8b2b8eb89a327ab7cdaa7ba0d0c55 (diff)
New discovery algorithm: Parallel PROPFIND
Diffstat (limited to 'src/libsync/owncloudpropagator.cpp')
-rw-r--r--src/libsync/owncloudpropagator.cpp9
1 files changed, 2 insertions, 7 deletions
diff --git a/src/libsync/owncloudpropagator.cpp b/src/libsync/owncloudpropagator.cpp
index 8950c5284..f7e6560dc 100644
--- a/src/libsync/owncloudpropagator.cpp
+++ b/src/libsync/owncloudpropagator.cpp
@@ -86,7 +86,7 @@ int OwncloudPropagator::maximumActiveTransferJob()
// disable parallelism when there is a network limit.
return 1;
}
- return qMin(3, qCeil(hardMaximumActiveJob() / 2.));
+ return qMin(3, qCeil(_syncOptions._parallelNetworkJobs / 2.));
}
/* The maximum number of active jobs in parallel */
@@ -94,12 +94,7 @@ int OwncloudPropagator::hardMaximumActiveJob()
{
if (!_syncOptions._parallelNetworkJobs)
return 1;
- static int max = qgetenv("OWNCLOUD_MAX_PARALLEL").toUInt();
- if (max)
- return max;
- if (_account->isHttp2Supported())
- return 20;
- return 6; // (Qt cannot do more anyway)
+ return _syncOptions._parallelNetworkJobs;
}
PropagateItemJob::~PropagateItemJob()