summaryrefslogtreecommitdiffstats
path: root/usr.bin/systat
diff options
context:
space:
mode:
authorobrien <obrien@FreeBSD.org>1998-12-27 08:15:37 +0000
committerobrien <obrien@FreeBSD.org>1998-12-27 08:15:37 +0000
commit60e9f493359e3fd0d9ae50fa20da108cac70dd5d (patch)
tree09e87e0c07228954a91a336d52651adecf6b5fe0 /usr.bin/systat
parenta90947f54ca8419f79d75bbfcf72f73cc08fbd40 (diff)
downloadFreeBSD-src-60e9f493359e3fd0d9ae50fa20da108cac70dd5d.zip
FreeBSD-src-60e9f493359e3fd0d9ae50fa20da108cac70dd5d.tar.gz
Don't waste precious space on showing the performance of fdX.
(can get old behavior with -DWANT_FD)
Diffstat (limited to 'usr.bin/systat')
-rw-r--r--usr.bin/systat/vmstat.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/usr.bin/systat/vmstat.c b/usr.bin/systat/vmstat.c
index fe31fba..86fdbf6 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,
OpenPOWER on IntegriCloud