Improve
parent
7ffbb325d3
commit
7d96a4550c
|
|
@ -4,7 +4,9 @@ output_txt_path: /var/www/downloads/speeds.txt
|
|||
ros_dynamic_speed: True
|
||||
ros_ip: 192.168.88.1
|
||||
ros_queues:
|
||||
- WAN
|
||||
- all
|
||||
ros_queues_except:
|
||||
- dummy
|
||||
ros_du_invert: False
|
||||
ros_fasttrack_comment: "defconf: fasttrack"
|
||||
# Minimum speed which not to cross, if speed is lower than this it will set this speed
|
||||
|
|
|
|||
|
|
@ -175,7 +175,7 @@ def ros_dynamic_speed(upload, download):
|
|||
list_queues = api.get_resource('/queue/simple')
|
||||
|
||||
for queue in list_queues.get():
|
||||
if queue['name'] in config['ros_queues']:
|
||||
if queue['name'] in config['ros_queues'] or ("all" in config['ros_queues'] and queue["name"] not in config['ros_queues_except']):
|
||||
log.debug(
|
||||
f"Adjust Queue {queue['name']}: max_limit {int(upload)}/{int(download)}")
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue