diff options
author | 2008-12-18 19:46:39 +0000 | |
---|---|---|
committer | 2008-12-18 19:46:39 +0000 | |
commit | 52708f23786decdb7bd64bba5855c7b2e4f67b17 (patch) | |
tree | ed5d1686ba398bdbf34c9502be89dc538fd556c0 | |
parent | Instead of directly applying ntoh*() to fields of the captured (diff) | |
download | wireguard-openbsd-52708f23786decdb7bd64bba5855c7b2e4f67b17.tar.xz wireguard-openbsd-52708f23786decdb7bd64bba5855c7b2e4f67b17.zip |
Print the interface livelocks if non-zero. From deraadt@
-rw-r--r-- | usr.bin/systat/mbufs.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/usr.bin/systat/mbufs.c b/usr.bin/systat/mbufs.c index d90966037e5..f7190da9bff 100644 --- a/usr.bin/systat/mbufs.c +++ b/usr.bin/systat/mbufs.c @@ -1,4 +1,4 @@ -/* $OpenBSD: mbufs.c,v 1.19 2008/12/17 08:21:43 canacar Exp $ */ +/* $OpenBSD: mbufs.c,v 1.20 2008/12/18 19:46:39 canacar Exp $ */ /* * Copyright (c) 2008 Can Erkin Acar <canacar@openbsd.org> * @@ -340,8 +340,6 @@ showmbuf(struct if_info *ifi, int p) { int i; - - if (p == -1 || (p == 0 && ifi != interfaces)) { print_fld_str(FLD_MB_IFACE, ifi->name); } @@ -357,8 +355,9 @@ showmbuf(struct if_info *ifi, int p) #if NOTYET print_fld_uint(FLD_MB_RXDELAY, ifi->data.ifi_rxdelay); print_fld_uint(FLD_MB_TXDELAY, ifi->data.ifi_txdelay); - print_fld_size(FLD_MB_LLOCKS, ifi->data.ifi_txdelay); #endif + if (ifi->data.ifi_livelocks) + print_fld_size(FLD_MB_LLOCKS, ifi->data.ifi_livelocks); if (p >= 0 && p < mclpool_count) { struct mclpool *mp = &ifi->data.ifi_mclpool[p]; |