summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkstailey <kstailey@openbsd.org>1997-06-16 19:10:15 +0000
committerkstailey <kstailey@openbsd.org>1997-06-16 19:10:15 +0000
commit7de4aa6c7787ca776f7cd4bd6ce9a3297c90882a (patch)
tree14b7ce1c876564fc9362c39f98f0e704a0959f25
parenteven more global.dummy -> .global.dummy (diff)
downloadwireguard-openbsd-7de4aa6c7787ca776f7cd4bd6ce9a3297c90882a.tar.xz
wireguard-openbsd-7de4aa6c7787ca776f7cd4bd6ce9a3297c90882a.zip
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.
-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);