From 20ba01ed15fcd264263e3547d18f59798d8c4406 Mon Sep 17 00:00:00 2001 From: Michael Marsh <mmarsh@cs.umd.edu> Date: Mon, 19 Feb 2018 08:44:42 -0500 Subject: [PATCH] fixes --- netem.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/netem.py b/netem.py index 1e3456f..d17ff56 100755 --- a/netem.py +++ b/netem.py @@ -18,7 +18,7 @@ parser.add_argument('-B', '--bandwidth', help='bandwidth to set' ) parser.add_argument('-D', '--delay', - dest='delay', + dest='delay (in milliseconds)', help='link latency' ) parser.add_argument('-L', '--loss', @@ -53,6 +53,7 @@ if args.bandwidth is not None: cmd.append(str(args.bandwidth)) if args.loss is not None: cmd.append("loss") + cmd.append("random") cmd.append(str(args.loss)) subprocess.check_output(cmd,stderr=subprocess.STDOUT) -- GitLab