mpLinkCharacteristics: avoid strange behavior with netem and its limit
This commit is contained in:
parent
f9786312ca
commit
aabe0de79d
@ -46,7 +46,7 @@ class MpLinkCharacteristics:
|
|||||||
cmd = cmd + " burst " + str(int(self.queueSize) * 1500) + ") && "
|
cmd = cmd + " burst " + str(int(self.queueSize) * 1500) + ") && "
|
||||||
cmd = cmd + " tc qdisc add dev " + ifname + " "
|
cmd = cmd + " tc qdisc add dev " + ifname + " "
|
||||||
cmd = cmd + " parent " + MpLinkCharacteristics.tcNetemHandle
|
cmd = cmd + " parent " + MpLinkCharacteristics.tcNetemHandle
|
||||||
cmd = cmd + " netem " + n.cmd + " delay " + self.delay + "ms && "
|
cmd = cmd + " netem " + n.cmd + " delay " + self.delay + "ms limit " + self.queueSize + " && "
|
||||||
cmd = cmd + " true &"
|
cmd = cmd + " true &"
|
||||||
return cmd
|
return cmd
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user