Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/altq/altqstat altqstat: show raw values of avgidle,...
details: https://anonhg.NetBSD.org/src/rev/494866f443a2
branches: trunk
changeset: 984748:494866f443a2
user: ozaki-r <ozaki-r%NetBSD.org@localhost>
date: Wed Jul 21 06:42:07 2021 +0000
description:
altqstat: show raw values of avgidle, maxidle and minidle
The values are sometimes small and cooked values of them can be less
informative such as 0 or -1.
diffstat:
usr.sbin/altq/altqstat/qdisc_cbq.c | 7 ++++++-
1 files changed, 6 insertions(+), 1 deletions(-)
diffs (25 lines):
diff -r 8a100e3c1826 -r 494866f443a2 usr.sbin/altq/altqstat/qdisc_cbq.c
--- a/usr.sbin/altq/altqstat/qdisc_cbq.c Wed Jul 21 06:41:22 2021 +0000
+++ b/usr.sbin/altq/altqstat/qdisc_cbq.c Wed Jul 21 06:42:07 2021 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: qdisc_cbq.c,v 1.8 2021/07/21 06:38:57 ozaki-r Exp $ */
+/* $NetBSD: qdisc_cbq.c,v 1.9 2021/07/21 06:42:07 ozaki-r Exp $ */
/* $KAME: qdisc_cbq.c,v 1.7 2003/09/17 14:27:37 kjc Exp $ */
/*
* Copyright (C) 1999-2000
@@ -133,10 +133,15 @@
printf("\tQCount: %d,\t(qmax: %d)\n",
sp->qcnt, sp->qmax);
+#if 0
printf("\tAvgIdle: %d [us],\t(maxidle: %d minidle: %d [us])\n",
sp->avgidle >> RM_FILTER_GAIN,
sp->maxidle >> RM_FILTER_GAIN,
sp->minidle / RM_POWER);
+#else
+ printf("\tAvgIdle: %d [us],\t(maxidle: %d minidle: %d [us])\n",
+ sp->avgidle, sp->maxidle, sp->minidle);
+#endif
}
/* swap the buffer pointers */
Home |
Main Index |
Thread Index |
Old Index