mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
Propagator: Re-order statement of previous commit
The user should be allowed to override. For issue #3382 Will also help for #3095
This commit is contained in:
parent
29d7903c22
commit
593aa003d6
@ -51,15 +51,16 @@ OwncloudPropagator::~OwncloudPropagator()
|
||||
/* The maximum number of active job in parallel */
|
||||
int OwncloudPropagator::maximumActiveJob()
|
||||
{
|
||||
static int max = qgetenv("OWNCLOUD_MAX_PARALLEL").toUInt();
|
||||
if (!max) {
|
||||
max = 3; //default
|
||||
}
|
||||
|
||||
if (_downloadLimit != 0 || _uploadLimit != 0) {
|
||||
// disable parallelism when there is a network limit.
|
||||
return 1;
|
||||
}
|
||||
|
||||
static int max = qgetenv("OWNCLOUD_MAX_PARALLEL").toUInt();
|
||||
if (!max) {
|
||||
max = 3; //default
|
||||
}
|
||||
return max;
|
||||
}
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user