fix 自动限速

This commit is contained in:
thsrite 2023-08-31 19:33:16 +08:00
parent 37bada89ef
commit 0cf11db76a

View File

@ -72,8 +72,9 @@ class SpeedLimiter(_PluginBase):
try:
# 总带宽
self._bandwidth = int(float(config.get("bandwidth") or 0)) * 1000000
# 自动限速开关
self._auto_limit = True
if self._bandwidth > 0:
# 自动限速开关
self._auto_limit = True
except Exception:
self._bandwidth = 0