From 0cfb0d524c5499b766cbd5a8886552a33babb53a Mon Sep 17 00:00:00 2001 From: Kenjiro Cho Date: Wed, 7 Nov 2001 05:05:01 +0000 Subject: fix a bug that reports byte-count for packet-count. report by Panos GEVROS --- usr.sbin/altq/altqstat/qdisc_cbq.c | 4 ++-- 1 file 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); -- cgit v1.2.3