summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>1996-12-09 08:36:41 +0000
committerderaadt <deraadt@openbsd.org>1996-12-09 08:36:41 +0000
commit6385e71c33db156836948a6b8b503d53f9e1c37a (patch)
treeeb58552b277c2bc9c6bd627ee7e3c96aa6076625
parentbrelse properly (diff)
downloadwireguard-openbsd-6385e71c33db156836948a6b8b503d53f9e1c37a.tar.xz
wireguard-openbsd-6385e71c33db156836948a6b8b503d53f9e1c37a.zip
minor whoops
-rw-r--r--sys/arch/i386/i386/machdep.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/i386/i386/machdep.c b/sys/arch/i386/i386/machdep.c
index 0743c49c7ae..ee62226a4ee 100644
--- a/sys/arch/i386/i386/machdep.c
+++ b/sys/arch/i386/i386/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.29 1996/12/05 18:08:06 dm Exp $ */
+/* $OpenBSD: machdep.c,v 1.30 1996/12/09 08:36:41 deraadt Exp $ */
/* $NetBSD: machdep.c,v 1.202 1996/05/18 15:54:59 christos Exp $ */
/*-
@@ -376,8 +376,8 @@ allocsys(v)
((100/BUFCACHEPERCENT) * CLSIZE);
/* Restrict to at most 70% filled kvm */
- if (bufpages * MAXBSIZE * 7 / 10 >
- (VM_MAX_KERNEL_ADDRESS-VM_MIN_KERNEL_ADDRESS))
+ if (bufpages * MAXBSIZE >
+ (VM_MAX_KERNEL_ADDRESS-VM_MIN_KERNEL_ADDRESS) * 7 / 10)
bufpages = (VM_MAX_KERNEL_ADDRESS-VM_MIN_KERNEL_ADDRESS) /
MAXBSIZE * 7 / 10;
if (nbuf == 0) {