From d9813dbc90ca6b1f7c14b941f7b1c9aff019ff89 Mon Sep 17 00:00:00 2001 From: Olivier Goffart Date: Tue, 18 Jul 2017 08:58:07 +0200 Subject: [PATCH] Propagator: fix a qMax which should have been a qMin --- src/libsync/owncloudpropagator.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libsync/owncloudpropagator.cpp b/src/libsync/owncloudpropagator.cpp index e76e00e8e..17ab9faca 100644 --- a/src/libsync/owncloudpropagator.cpp +++ b/src/libsync/owncloudpropagator.cpp @@ -84,7 +84,7 @@ int OwncloudPropagator::maximumActiveTransferJob() // disable parallelism when there is a network limit. return 1; } - return qMax(3, qCeil(hardMaximumActiveJob() / 2.)); + return qMin(3, qCeil(hardMaximumActiveJob() / 2.)); } /* The maximum number of active jobs in parallel */ -- 2.30.2