summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorkstailey <kstailey@cvs.openbsd.org>1997-06-16 19:10:16 +0000
committerkstailey <kstailey@cvs.openbsd.org>1997-06-16 19:10:16 +0000
commitfc566c9b2031bd732046643f4a6c87ec9abfb0f8 (patch)
treea0b6f0b07a2d2798377ce2252cb695453cebeca9 /usr.bin
parent78f0ccf0f98b9d56677d0bc4e6b668ae0932209f (diff)
You can't store a double in an int and then do tests for the fractional part
miss thing! Also, make more sensitive to digital decay. Now "<<<" will show up in load average display.
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/systat/main.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/systat/main.c b/usr.bin/systat/main.c
index 409a9a2900d..ead475070c0 100644
--- a/usr.bin/systat/main.c
+++ b/usr.bin/systat/main.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: main.c,v 1.9 1997/01/15 23:43:17 millert Exp $ */
+/* $OpenBSD: main.c,v 1.10 1997/06/16 19:10:15 kstailey Exp $ */
/* $NetBSD: main.c,v 1.8 1996/05/10 23:16:36 thorpej Exp $ */
/*-
@@ -44,7 +44,7 @@ static char copyright[] =
#if 0
static char sccsid[] = "@(#)main.c 8.1 (Berkeley) 6/6/93";
#endif
-static char rcsid[] = "$OpenBSD: main.c,v 1.9 1997/01/15 23:43:17 millert Exp $";
+static char rcsid[] = "$OpenBSD: main.c,v 1.10 1997/06/16 19:10:15 kstailey Exp $";
#endif /* not lint */
#include <sys/param.h>
@@ -68,7 +68,7 @@ static struct nlist namelist[] = {
{ "_stathz" },
{ "" }
};
-static int dellave;
+static double dellave;
kvm_t *kd;
char *memf = NULL;
@@ -239,7 +239,7 @@ display(signo)
c = '>';
dellave = -dellave;
}
- if (dellave < 0.1)
+ if (dellave < 0.05)
c = '|';
dellave = avenrun[0];
wmove(wload, 0, 0); wclrtoeol(wload);