Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/vmstat Init summary counters.
details: https://anonhg.NetBSD.org/src/rev/76b267c6b949
branches: trunk
changeset: 329926:76b267c6b949
user: joerg <joerg%NetBSD.org@localhost>
date: Sat Jun 14 04:06:54 2014 +0000
description:
Init summary counters.
diffstat:
usr.bin/vmstat/vmstat.c | 5 +++--
1 files changed, 3 insertions(+), 2 deletions(-)
diffs (26 lines):
diff -r 1b5532df96bc -r 76b267c6b949 usr.bin/vmstat/vmstat.c
--- a/usr.bin/vmstat/vmstat.c Sat Jun 14 02:54:47 2014 +0000
+++ b/usr.bin/vmstat/vmstat.c Sat Jun 14 04:06:54 2014 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vmstat.c,v 1.201 2014/06/14 01:26:59 joerg Exp $ */
+/* $NetBSD: vmstat.c,v 1.202 2014/06/14 04:06:54 joerg Exp $ */
/*-
* Copyright (c) 1998, 2000, 2001, 2007 The NetBSD Foundation, Inc.
@@ -70,7 +70,7 @@
#if 0
static char sccsid[] = "@(#)vmstat.c 8.2 (Berkeley) 3/1/95";
#else
-__RCSID("$NetBSD: vmstat.c,v 1.201 2014/06/14 01:26:59 joerg Exp $");
+__RCSID("$NetBSD: vmstat.c,v 1.202 2014/06/14 04:06:54 joerg Exp $");
#endif
#endif /* not lint */
@@ -1377,6 +1377,7 @@
if (data == NULL)
err(1, "failed to reead kern.pool");
+ memset(&pool_totals, 0, sizeof pool_totals);
total = inuse = 0;
len /= sizeof(*data);
Home |
Main Index |
Thread Index |
Old Index