summaryrefslogtreecommitdiff
path: root/usr.bin/systat/vmstat.c
diff options
context:
space:
mode:
authorDavid Gwynne <dlg@cvs.openbsd.org>2006-04-14 01:14:57 +0000
committerDavid Gwynne <dlg@cvs.openbsd.org>2006-04-14 01:14:57 +0000
commitef11cfe229cd30772c218f413c61176bd6629988 (patch)
tree38cedfe5ff0fce0dc9bd25e35d819ad0e5748498 /usr.bin/systat/vmstat.c
parentf602d3ffece442efb97a8e704dcc645d7294cbcb (diff)
remove comments that says we dont count intr time and remove some code that
fudges the output to stay clean when intr time wasnt shown. not needed since we show it now.
Diffstat (limited to 'usr.bin/systat/vmstat.c')
-rw-r--r--usr.bin/systat/vmstat.c17
1 files changed, 2 insertions, 15 deletions
diff --git a/usr.bin/systat/vmstat.c b/usr.bin/systat/vmstat.c
index f54050a7d35..8fe15dc7e64 100644
--- a/usr.bin/systat/vmstat.c
+++ b/usr.bin/systat/vmstat.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: vmstat.c,v 1.59 2006/04/14 01:08:15 dlg Exp $ */
+/* $OpenBSD: vmstat.c,v 1.60 2006/04/14 01:14:56 dlg 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.59 2006/04/14 01:08:15 dlg Exp $";
+static char rcsid[] = "$OpenBSD: vmstat.c,v 1.60 2006/04/14 01:14:56 dlg Exp $";
#endif /* not lint */
/*
@@ -373,9 +373,6 @@ showkre(void)
psiz = 0;
f2 = 0.0;
- /*
- * Last CPU state not calculated yet.
- */
for (c = 0; c < CPUSTATES; c++) {
i = cpuorder[c];
f1 = cputime(i);
@@ -388,16 +385,6 @@ showkre(void)
addch(cpuchar[c]);
}
- /*
- * The above code does not account for time in the CP_INTR state.
- * Thus the total may be less than 100%. If the total is less than
- * the previous total old data may be left on the graph. The graph
- * assumes one character position for every 2 percentage points for
- * a total of 50 positions. Ensure all positions have been filled.
- */
- while ( psiz++ <= 50 )
- addch(' ');
-
putint(ucount(), STATROW, STATCOL, 3);
putfloat(avenrun[0], STATROW, STATCOL + 17, 6, 2, 0);
putfloat(avenrun[1], STATROW, STATCOL + 23, 6, 2, 0);