[Pkg-owncloud-commits] [owncloud-client] 377/498: Bandwidth Limit: Fix new "Automatic Download" setting #1485
Sandro Knauß
hefee-guest at moszumanska.debian.org
Tue Aug 11 14:49:08 UTC 2015
This is an automated email from the git hooks/post-receive script.
hefee-guest pushed a commit to branch master
in repository owncloud-client.
commit fea997c84ad41727fd4cdb27d363eb4e0a553601
Author: Markus Goetz <markus at woboq.com>
Date: Thu Jul 23 13:44:40 2015 +0200
Bandwidth Limit: Fix new "Automatic Download" setting #1485
---
src/gui/folder.cpp | 8 ++++++--
1 file changed, 6 insertions(+), 2 deletions(-)
diff --git a/src/gui/folder.cpp b/src/gui/folder.cpp
index 6caae6b..3a4fede 100644
--- a/src/gui/folder.cpp
+++ b/src/gui/folder.cpp
@@ -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) {
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud-client.git
More information about the Pkg-owncloud-commits
mailing list