MCPcopy Index your code
hub / github.com/pyload/pyload / updateBucket

Method updateBucket

module/network/RequestFactory.py:121–126  ·  view source on GitHub ↗

set values in the bucket according to settings

(self)

Source from the content-addressed store, hash-verified

119 "ipv6" : self.core.config["download"]["ipv6"]}
120
121 def updateBucket(self):
122 """ set values in the bucket according to settings"""
123 if not self.core.config["download"]["limit_speed"]:
124 self.bucket.setRate(-1)
125 else:
126 self.bucket.setRate(self.core.config["download"]["max_speed"] * 1024)
127
128
129# needs pyreq in global namespace

Callers 3

__init__Method · 0.95
setConfigValueMethod · 0.80
set_download_speedMethod · 0.80

Calls 1

setRateMethod · 0.80

Tested by

no test coverage detected