mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-23 13:35:58 +03:00
Bandwidth Limit: Fix new "Automatic Download" setting #1485
This commit is contained in:
parent
316427c801
commit
fea997c84a
1 changed files with 6 additions and 2 deletions
|
@ -871,10 +871,14 @@ void Folder::setDirtyNetworkLimits()
|
|||
if (_engine) {
|
||||
|
||||
ConfigFile cfg;
|
||||
int downloadLimit = 0;
|
||||
if (cfg.useDownloadLimit()) {
|
||||
int downloadLimit = -75; // 75%
|
||||
int useDownLimit = cfg.useDownloadLimit();
|
||||
if (useDownLimit >= 1) {
|
||||
downloadLimit = cfg.downloadLimit() * 1000;
|
||||
} else if (useDownLimit == 0) {
|
||||
downloadLimit = 0;
|
||||
}
|
||||
|
||||
int uploadLimit = -75; // 75%
|
||||
int useUpLimit = cfg.useUploadLimit();
|
||||
if ( useUpLimit >= 1) {
|
||||
|
|
Loading…
Reference in a new issue