]> dgit.raspbian.org Git - nextcloud-desktop.git/commit
Propagator: Fix t8.pl
authorOlivier Goffart <ogoffart@woboq.com>
Fri, 17 Feb 2017 08:28:20 +0000 (09:28 +0100)
committerOlivier Goffart <olivier@woboq.com>
Fri, 17 Feb 2017 15:56:57 +0000 (16:56 +0100)
commit112a7dba731b73869f002aae02a1875237c3b0ab
tree6b4d0a206cb3adbd8c24b4a727d5bb6d7fcc5832
parentee11b5d9be5647a12f4a9847d7d64145a982802d
Propagator: Fix t8.pl

The test sets OWNCLOUD_MAX_PARALLEL to 1 to disable parallelism.
But since the max amount of parallelism is twice as much, that does not
work.
So change the way we compute the hardMaximumActiveJob: Use the value of
OWNCLOUD_MAX_PARALLEL to maximize this amount and base the maximum amount
of transfer jobs on it instead of the other way.

A result of this change is that, in case of bandwidth limit, we keep the
default of 6 non-transfer jobs in parallel. I believe that's fine since
the short jobs do not really use bandwidth, so we can still keep the same
amount of small jobs.
src/libsync/owncloudpropagator.cpp
src/libsync/owncloudpropagator.h
src/libsync/propagateuploadv1.cpp