fix 自动限速
This commit is contained in:
parent
37bada89ef
commit
0cf11db76a
@ -72,8 +72,9 @@ class SpeedLimiter(_PluginBase):
|
|||||||
try:
|
try:
|
||||||
# 总带宽
|
# 总带宽
|
||||||
self._bandwidth = int(float(config.get("bandwidth") or 0)) * 1000000
|
self._bandwidth = int(float(config.get("bandwidth") or 0)) * 1000000
|
||||||
# 自动限速开关
|
if self._bandwidth > 0:
|
||||||
self._auto_limit = True
|
# 自动限速开关
|
||||||
|
self._auto_limit = True
|
||||||
except Exception:
|
except Exception:
|
||||||
self._bandwidth = 0
|
self._bandwidth = 0
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user