summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKenjiro Cho <kjc@cvs.openbsd.org>2001-11-07 05:05:01 +0000
committerKenjiro Cho <kjc@cvs.openbsd.org>2001-11-07 05:05:01 +0000
commit0cfb0d524c5499b766cbd5a8886552a33babb53a (patch)
tree02b57150ecdb72c084b5adc486cbb0a659553687
parente30d90006675015c644894feff38360db0b69667 (diff)
fix a bug that reports byte-count for packet-count.
report by Panos GEVROS <P.Gevros@cs.ucl.ac.uk>
-rw-r--r--usr.sbin/altq/altqstat/qdisc_cbq.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/altq/altqstat/qdisc_cbq.c b/usr.sbin/altq/altqstat/qdisc_cbq.c
index 4360cc169fe..2ae7f06735d 100644
--- a/usr.sbin/altq/altqstat/qdisc_cbq.c
+++ b/usr.sbin/altq/altqstat/qdisc_cbq.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: qdisc_cbq.c,v 1.2 2001/08/16 12:59:43 kjc Exp $ */
+/* $OpenBSD: qdisc_cbq.c,v 1.3 2001/11/07 05:05:00 kjc Exp $ */
/* $KAME: qdisc_cbq.c,v 1.4 2001/08/15 12:51:58 kjc Exp $ */
/*
* Copyright (C) 1999-2000
@@ -135,7 +135,7 @@ cbq_stat_loop(int fd, const char *ifname, int count, int interval)
printf("\tborrows: %u,\tdelays: %u\n",
sp->borrows, sp->delays);
printf("\tdrops: %llu,\tdrop_bytes: %llu\n",
- (ull)sp->drop_cnt.bytes,
+ (ull)sp->drop_cnt.packets,
(ull)sp->drop_cnt.bytes);
if (sp->qtype == Q_RED)
print_redstats(sp->red);