diff --git a/config/config.yaml b/config/config.yaml index 5780a4d..d8cd319 100644 --- a/config/config.yaml +++ b/config/config.yaml @@ -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 diff --git a/speedtester.py b/speedtester.py index e8dd03a..88bf144 100644 --- a/speedtester.py +++ b/speedtester.py @@ -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)}")