From 5647c79de5582ca6b9e47c315ac6eecf83036789 Mon Sep 17 00:00:00 2001 From: "David E. O'Brien" Date: Sun, 27 Dec 1998 08:15:37 +0000 Subject: [PATCH] Don't waste precious space on showing the performance of fdX. (can get old behavior with -DWANT_FD) --- usr.bin/systat/vmstat.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/usr.bin/systat/vmstat.c b/usr.bin/systat/vmstat.c index fe31fba4a5b5..86fdbf6dfc90 100644 --- a/usr.bin/systat/vmstat.c +++ b/usr.bin/systat/vmstat.c @@ -36,7 +36,7 @@ static char sccsid[] = "@(#)vmstat.c 8.2 (Berkeley) 1/12/94"; #endif static const char rcsid[] = - "$Id: vmstat.c,v 1.28 1998/10/05 04:04:27 ken Exp $"; + "$Id: vmstat.c,v 1.29 1998/10/08 09:56:10 obrien Exp $"; #endif /* not lint */ /* @@ -340,6 +340,10 @@ labelkre() for (i = 0; i < num_devices && j < MAXDRIVES; i++) if (dev_select[i].selected) { char tmpstr[80]; +#ifndef WANT_FD + if (0==strcmp("fd", dev_select[i].device_name)) + continue; +#endif sprintf(tmpstr, "%s%d", dev_select[i].device_name, dev_select[i].unit_number); mvprintw(DISKROW, DISKCOL + 5 + 6 * j, @@ -492,6 +496,10 @@ showkre() for (i = 0, c = 0; i < num_devices && c < MAXDRIVES; i++) if (dev_select[i].selected) { char tmpstr[80]; +#ifndef WANT_FD + if (0==strcmp("fd", dev_select[i].device_name)) + continue; +#endif sprintf(tmpstr, "%s%d", dev_select[i].device_name, dev_select[i].unit_number); mvprintw(DISKROW, DISKCOL + 5 + 6 * c,