diff options
author | Chris Wilson <chris+github@qwirx.com> | 2011-01-12 00:13:11 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2011-01-12 00:13:11 +0000 |
commit | afbf1bc7b1277ebfd02a7e70e93a5e27a32e47da (patch) | |
tree | 85a1787f89aadd8a54533dd2a7763d5fac7a202e /bin/bbackupd/BackupDaemon.cpp | |
parent | 8ee2327add953c8282807c988dcaef7a2d03a7f1 (diff) |
Rate limit file uploads using the configured MaxUploadRate, if any.
Diffstat (limited to 'bin/bbackupd/BackupDaemon.cpp')
-rw-r--r-- | bin/bbackupd/BackupDaemon.cpp | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/bin/bbackupd/BackupDaemon.cpp b/bin/bbackupd/BackupDaemon.cpp index ed3861ae..ca7cdcc9 100644 --- a/bin/bbackupd/BackupDaemon.cpp +++ b/bin/bbackupd/BackupDaemon.cpp @@ -830,6 +830,12 @@ void BackupDaemon::RunSyncNow() conf.GetKeyValueInt("DiffingUploadSizeThreshold"); params.mMaxFileTimeInFuture = SecondsToBoxTime(conf.GetKeyValueInt("MaxFileTimeInFuture")); + + if(conf.KeyExists("MaxUploadRate")) + { + params.mMaxUploadRate = conf.GetKeyValueInt("MaxUploadRate"); + } + mDeleteRedundantLocationsAfter = conf.GetKeyValueInt("DeleteRedundantLocationsAfter"); mStorageLimitExceeded = false; |