Update __init__.py
修复按比例的bug
This commit is contained in:
parent
4902d5ebed
commit
84a2db2247
@ -517,7 +517,7 @@ class SpeedLimiter(_PluginBase):
|
|||||||
else:
|
else:
|
||||||
# 按比例
|
# 按比例
|
||||||
allocation_count = sum([int(i) for i in self._allocation_ratio.split(":")])
|
allocation_count = sum([int(i) for i in self._allocation_ratio.split(":")])
|
||||||
upload_limit = int(upload_limit * int(self._allocation_ratio[cnt]) / allocation_count)
|
upload_limit = int(upload_limit * int(self._allocation_ratio.split(":")[cnt]) / allocation_count)
|
||||||
cnt += 1
|
cnt += 1
|
||||||
|
|
||||||
if str(download) == 'qbittorrent':
|
if str(download) == 'qbittorrent':
|
||||||
|
Loading…
x
Reference in New Issue
Block a user