Skip to content

Commit

Permalink
honour bandwidth limit: don't override value from ServerCore
Browse files Browse the repository at this point in the history
git-svn-id: https://xpra.org/svn/Xpra/trunk@20398 3bb7dfac-3a0b-4e04-842a-767bc560f471
  • Loading branch information
totaam committed Sep 12, 2018
1 parent 21d1a3d commit 09fae18
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/xpra/server/mixins/networkstate_server.py
Expand Up @@ -13,6 +13,7 @@

from xpra.server.mixins.stub_server_mixin import StubServerMixin

from xpra.scripts.config import parse_with_unit
from xpra.simple_stats import std_unit
from xpra.os_util import livefds, POSIX
from xpra.util import envbool, detect_leaks
Expand All @@ -36,6 +37,8 @@ def __init__(self):

def init(self, opts):
self.pings = opts.pings
self.bandwidth_limit = parse_with_unit("bandwidth-limit", opts.bandwidth_limit)
bandwidthlog("bandwidth-limit(%s)=%s", opts.bandwidth_limit, self.bandwidth_limit)

def setup(self):
self.init_leak_detection()
Expand Down

0 comments on commit 09fae18

Please sign in to comment.