summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2004-05-22 18:06:13 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2004-05-22 18:06:13 +0000
commit257d780fb1d028b2f3e3a1bf961370509bd4b1e2 (patch)
tree770f07729c32d5acdac5a313c525f4413c4fa25c
parent564f825b0df6727d69a0584e0fd5deeb32c95001 (diff)
with modern disks data transfers rates above 10000 kByte/s are seen
regularily, make the disk columns a little wider so it doesn't run into the neighboring column, theo ok
-rw-r--r--usr.bin/systat/vmstat.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/systat/vmstat.c b/usr.bin/systat/vmstat.c
index d70b1f1c2ce..29acfba60a7 100644
--- a/usr.bin/systat/vmstat.c
+++ b/usr.bin/systat/vmstat.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vmstat.c,v 1.46 2004/04/23 04:15:27 tedu Exp $ */
+/* $OpenBSD: vmstat.c,v 1.47 2004/05/22 18:06:12 henning Exp $ */
/* $NetBSD: vmstat.c,v 1.5 1996/05/10 23:16:40 thorpej Exp $ */
/*-
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)vmstat.c 8.2 (Berkeley) 1/12/94";
#endif
-static char rcsid[] = "$OpenBSD: vmstat.c,v 1.46 2004/04/23 04:15:27 tedu Exp $";
+static char rcsid[] = "$OpenBSD: vmstat.c,v 1.47 2004/05/22 18:06:12 henning Exp $";
#endif /* not lint */
/*
@@ -333,7 +333,7 @@ labelkre(void)
mvprintw(DISKROW + 4, DISKCOL, " sec");
for (i = 0, j = 0; i < cur.dk_ndrive && j < DRIVESPACE; i++)
if (cur.dk_select[i] && (j + strlen(dr_name[i])) < DRIVESPACE) {
- l = MAX(4, strlen(dr_name[i]));
+ l = MAX(5, strlen(dr_name[i]));
mvprintw(DISKROW, DISKCOL + 5 + j,
" %*s", l, dr_name[i]);
j += 1 + l;
@@ -506,7 +506,7 @@ showkre(void)
mvprintw(DISKROW, DISKCOL + 5, " ");
for (i = 0, c = 0; i < cur.dk_ndrive && c < DRIVESPACE; i++)
if (cur.dk_select[i] && (c + strlen(dr_name[i])) < DRIVESPACE) {
- l = MAX(4, strlen(dr_name[i]));
+ l = MAX(5, strlen(dr_name[i]));
mvprintw(DISKROW, DISKCOL + 5 + c,
" %*s", l, dr_name[i]);
c += 1 + l;