Commit 164de9bf authored by Martín Ferrari's avatar Martín Ferrari

delay_correlation requires delay_jitter

parent 8ae7eb92
......@@ -875,9 +875,11 @@ def set_tc(iface, bandwidth = None, delay = None, delay_jitter = None,
if delay_jitter:
command += ["%fs" % delay_jitter]
if delay_correlation:
if not delay_jitter:
raise ValueError("delay_correlation requires delay_jitter")
command += ["%f%%" % (delay_correlation * 100)]
if delay_distribution:
if not delay_jitter: # or not delay_correlation:
if not delay_jitter:
raise ValueError("delay_distribution requires delay_jitter")
command += ["distribution", delay_distribution]
if loss:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment