summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristian Breunig <christian@breunig.cc>2024-02-07 18:37:43 +0100
committerGitHub <noreply@github.com>2024-02-07 18:37:43 +0100
commita0b0a77e004e567e99e57bf7414986ed01837c56 (patch)
treefbbea1173c1c929379fecc4b0d08988a11e23d1b
parenta0a18c4fa02c9d8aae30950720362d599a8ba6cd (diff)
parent6c3c5389bdd3f6b9d40e53596f9f22a2a36bfee9 (diff)
downloadvyos-1x-a0b0a77e004e567e99e57bf7414986ed01837c56.tar.gz
vyos-1x-a0b0a77e004e567e99e57bf7414986ed01837c56.zip
Merge pull request #2956 from vyos/mergify/bp/sagitta/pr-2953
T6021: Fix QoS shaper r2q calculation (backport #2953)
-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: