From a87871bbec58a647aeb35d65e16e3faef89a6ed5 Mon Sep 17 00:00:00 2001 From: soren Date: Thu, 30 Sep 1999 13:16:27 +0000 Subject: [PATCH] There's room in the systat-vmstat-iostat display, so allow four-letter device names like e.g. ccd0 and print an extra digit of precision in the 'sec' line like iostat(8) does. --- usr.bin/systat/vmstat.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/usr.bin/systat/vmstat.c b/usr.bin/systat/vmstat.c index 3d516d2b2900..b62ebf9410c1 100644 --- a/usr.bin/systat/vmstat.c +++ b/usr.bin/systat/vmstat.c @@ -1,4 +1,4 @@ -/* $NetBSD: vmstat.c,v 1.19 1999/03/24 05:51:32 mrg Exp $ */ +/* $NetBSD: vmstat.c,v 1.20 1999/09/30 13:16:27 soren Exp $ */ /*- * Copyright (c) 1983, 1989, 1992, 1993 @@ -38,7 +38,7 @@ #if 0 static char sccsid[] = "@(#)vmstat.c 8.2 (Berkeley) 1/12/94"; #endif -__RCSID("$NetBSD: vmstat.c,v 1.19 1999/03/24 05:51:32 mrg Exp $"); +__RCSID("$NetBSD: vmstat.c,v 1.20 1999/09/30 13:16:27 soren Exp $"); #endif /* not lint */ /* @@ -322,7 +322,7 @@ labelkre() for (i = 0; i < dk_ndrive && j < MAXDRIVES; i++) if (dk_select[i]) { mvprintw(DISKROW, DISKCOL + 5 + 5 * j, - " %3.3s", dr_name[j]); + " %4.4s", dr_name[j]); j++; } for (i = 0; i < nintr; i++) { @@ -474,7 +474,7 @@ showkre() for (i = 0, c = 0; i < dk_ndrive && c < MAXDRIVES; i++) if (dk_select[i]) { mvprintw(DISKROW, DISKCOL + 5 + 5 * c, - " %3.3s", dr_name[i]); + " %4.4s", dr_name[i]); dinfo(i, ++c); } putint(s.nchcount, NAMEIROW + 2, NAMEICOL, 9); @@ -656,5 +656,5 @@ dinfo(dn, c) putint((int)((float)cur.dk_seek[dn]/etime+0.5), DISKROW + 1, c, 5); putint((int)((float)cur.dk_xfer[dn]/etime+0.5), DISKROW + 2, c, 5); putint((int)(words/etime + 0.5), DISKROW + 3, c, 5); - putfloat(atime/etime, DISKROW + 4, c, 5, 1, 1); + putfloat(atime/etime, DISKROW + 4, c, 5, 2, 1); }