summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-02-07 18:01:33 +0100
committerGitHub <noreply@github.com>2024-02-07 18:01:33 +0100
commit19f7d8a093dac0c150aff756d7d16588f5bbb76d (patch)
tree87353d1fa2ebb731a832d20b199b2d7f393ef83a
parent9d74ae52092e97aa0ef285df4d44a5eb7ae93fbf (diff)
parentce1035e1e8642bf740e2a21693a72fe2127b8f72 (diff)
downloadvyos-1x-19f7d8a093dac0c150aff756d7d16588f5bbb76d.tar.gz
vyos-1x-19f7d8a093dac0c150aff756d7d16588f5bbb76d.zip
Merge pull request #2953 from sever-sever/T6021
T6021: Fix QoS shaper r2q calculation
-rw-r--r--python/vyos/qos/trafficshaper.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/python/vyos/qos/trafficshaper.py b/python/vyos/qos/trafficshaper.py
index d6705cc77..7d580baa2 100644
--- a/python/vyos/qos/trafficshaper.py
+++ b/python/vyos/qos/trafficshaper.py
@@ -39,7 +39,7 @@ class TrafficShaper(QoSBase):
# need a bigger r2q if going fast than 16 mbits/sec
if (speed_bps // r2q) >= MAXQUANTUM: # integer division
- r2q = ceil(speed_bps // MAXQUANTUM)
+ r2q = ceil(speed_bps / MAXQUANTUM)
else:
# if there is a slow class then may need smaller value
if 'class' in config: