Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.bin/vmstat Move the number of page colors to the top of ...
details: https://anonhg.NetBSD.org/src/rev/f6ba77fbe43d
branches: trunk
changeset: 509339:f6ba77fbe43d
user: thorpej <thorpej%NetBSD.org@localhost>
date: Wed May 02 01:26:04 2001 +0000
description:
Move the number of page colors to the top of the display.
diffstat:
usr.bin/vmstat/vmstat.c | 9 +++++----
1 files changed, 5 insertions(+), 4 deletions(-)
diffs (37 lines):
diff -r 2d8f9f7d38eb -r f6ba77fbe43d usr.bin/vmstat/vmstat.c
--- a/usr.bin/vmstat/vmstat.c Wed May 02 01:24:29 2001 +0000
+++ b/usr.bin/vmstat/vmstat.c Wed May 02 01:26:04 2001 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: vmstat.c,v 1.80 2001/05/01 19:36:58 thorpej Exp $ */
+/* $NetBSD: vmstat.c,v 1.81 2001/05/02 01:26:04 thorpej Exp $ */
/*-
* Copyright (c) 1998, 2000 The NetBSD Foundation, Inc.
@@ -80,7 +80,7 @@
#if 0
static char sccsid[] = "@(#)vmstat.c 8.2 (Berkeley) 3/1/95";
#else
-__RCSID("$NetBSD: vmstat.c,v 1.80 2001/05/01 19:36:58 thorpej Exp $");
+__RCSID("$NetBSD: vmstat.c,v 1.81 2001/05/02 01:26:04 thorpej Exp $");
#endif
#endif /* not lint */
@@ -553,6 +553,9 @@
(void)printf("%9u bytes per page\n", uvmexp.pagesize);
+ (void)printf("%9u page color%s\n",
+ uvmexp.ncolors, uvmexp.ncolors == 1 ? "" : "s");
+
(void)printf("%9u pages managed\n", uvmexp.npages);
(void)printf("%9u pages free\n", uvmexp.free);
(void)printf("%9u pages active\n", uvmexp.active);
@@ -605,8 +608,6 @@
uvmexp.colorhit);
(void)printf("%9u pagealloc desired color not avail\n",
uvmexp.colormiss);
- (void)printf("%9u page color%s\n",
- uvmexp.ncolors, uvmexp.ncolors == 1 ? "" : "s");
(void)printf("%9u faults with no memory\n", uvmexp.fltnoram);
(void)printf("%9u faults with no anons\n", uvmexp.fltnoanon);
Home |
Main Index |
Thread Index |
Old Index