set values in the bucket according to settings
(self)
| 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 |
no test coverage detected