mpLinkCharacteristics: avoid strange behavior with netem and its limit

This commit is contained in:
Quentin De Coninck 2016-05-08 19:51:45 +02:00
parent f9786312ca
commit aabe0de79d

View File

@ -46,7 +46,7 @@ class MpLinkCharacteristics:
cmd = cmd + " burst " + str(int(self.queueSize) * 1500) + ") && "
cmd = cmd + " tc qdisc add dev " + ifname + " "
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 &"
return cmd