Commit 7b986834 authored by osdl.net!shemminger's avatar osdl.net!shemminger

Fix netem display of rate and limit.

(Logical change 1.50)
parent 9c420d88
......@@ -122,7 +122,7 @@ static int netem_print_opt(struct qdisc_util *qu, FILE *f, struct rtattr *opt)
qopt = RTA_DATA(opt);
fprintf(f, "limit %s", sprint_size(qopt->limit, b1));
fprintf(f, "limit %d", qopt->limit);
if (qopt->latency)
fprintf(f, " latency %s",
sprint_usecs(qopt->latency, b2));
......@@ -132,6 +132,9 @@ static int netem_print_opt(struct qdisc_util *qu, FILE *f, struct rtattr *opt)
if (qopt->gap)
fprintf(f, " gap %lu", (unsigned long)qopt->gap);
if (qopt->rate)
fprintf(f, " rate %s", sprint_rate(qopt->rate, b1));
return 0;
}
......
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