summaryrefslogtreecommitdiffstats
path: root/tc/q_netem.c
diff options
context:
space:
mode:
authorosdl.net!shemminger <osdl.net!shemminger>2004-07-02 20:40:35 +0000
committerosdl.net!shemminger <osdl.net!shemminger>2004-07-02 20:40:35 +0000
commit7b9868343a36bdf330a7d73d5da9321bde44fec4 (patch)
treec044876cf9fe0184a9df813fe422d5f642f02b6a /tc/q_netem.c
parent9c420d884b68548f1cb68879da34167ee6f05063 (diff)
Fix netem display of rate and limit.
(Logical change 1.50)
Diffstat (limited to 'tc/q_netem.c')
-rw-r--r--tc/q_netem.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/tc/q_netem.c b/tc/q_netem.c
index 2c952530..b7d07079 100644
--- a/tc/q_netem.c
+++ b/tc/q_netem.c
@@ -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;
}