From 84c871c08700f2b43659446fedaa23e3fa616724 Mon Sep 17 00:00:00 2001 From: Olivier Goffart Date: Fri, 12 Oct 2018 14:44:33 +0200 Subject: New discovery algorithm: Parallel PROPFIND --- src/libsync/owncloudpropagator.cpp | 9 ++------- 1 file changed, 2 insertions(+), 7 deletions(-) (limited to 'src/libsync/owncloudpropagator.cpp') 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() -- cgit v1.2.3