Skip to content

Commit

Permalink
tc: merge pull request #1098 from BrianBaboch/bbaboch-fix-duplicate-v…
Browse files Browse the repository at this point in the history
…alue-for-netem-in-tc

sched_netem: fix duplicate attribute value for netem qdisc

Bug-Url: #1098
  • Loading branch information
svinota committed May 29, 2023
2 parents b53f22b + 3bc86ce commit 9444e40
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pyroute2/netlink/rtnl/tcmsg/sched_netem.py
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ def get_parameters(kwarg):
limit = kwarg.get('limit', 1000) # fifo limit (packets) see netem.c:230
loss = percent2u32(kwarg.get('loss', 0)) # int percentage
gap = kwarg.get('gap', 0)
duplicate = kwarg.get('duplicate', 0)
duplicate = percent2u32(kwarg.get('duplicate', 0)) # int percentage
jitter = time2tick(kwarg.get('jitter', 0)) # in microsecond

opts = {
Expand Down

0 comments on commit 9444e40

Please sign in to comment.