Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/usr.bin/netstat Fix printing current output drop packet coun...



details:   https://anonhg.NetBSD.org/src/rev/ccf7a804c252
branches:  trunk
changeset: 369997:ccf7a804c252
user:      msaitoh <msaitoh%NetBSD.org@localhost>
date:      Sun Sep 11 23:52:20 2022 +0000

description:
Fix printing current output drop packet count in continuous display mode.

diffstat:

 usr.bin/netstat/if.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 01f49d3b0a14 -r ccf7a804c252 usr.bin/netstat/if.c
--- a/usr.bin/netstat/if.c      Sun Sep 11 20:49:27 2022 +0000
+++ b/usr.bin/netstat/if.c      Sun Sep 11 23:52:20 2022 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: if.c,v 1.102 2022/09/05 04:52:53 msaitoh Exp $ */
+/*     $NetBSD: if.c,v 1.103 2022/09/11 23:52:20 msaitoh Exp $ */
 
 /*
  * Copyright (c) 1983, 1988, 1993
@@ -34,7 +34,7 @@
 #if 0
 static char sccsid[] = "from: @(#)if.c 8.2 (Berkeley) 2/21/94";
 #else
-__RCSID("$NetBSD: if.c,v 1.102 2022/09/05 04:52:53 msaitoh Exp $");
+__RCSID("$NetBSD: if.c,v 1.103 2022/09/11 23:52:20 msaitoh Exp $");
 #endif
 #endif /* not lint */
 
@@ -1182,7 +1182,7 @@
                                ip_cur.ift_oe = ifd->ifi_oerrors;
                                ip_cur.ift_co = ifd->ifi_collisions;
                                ip_cur.ift_iq = ifd->ifi_iqdrops;
-                               ip_cur.ift_oq = ifd->ifi_iqdrops; /* XXX */
+                               ip_cur.ift_oq = dext.ifi_oqdrops;
                        }
 
                        sum_cur.ift_ip += ifd->ifi_ipackets;



Home | Main Index | Thread Index | Old Index