summaryrefslogtreecommitdiff
path: root/sys/arch/i386
diff options
context:
space:
mode:
authorMichael Shalayeff <mickey@cvs.openbsd.org>2000-10-27 00:16:23 +0000
committerMichael Shalayeff <mickey@cvs.openbsd.org>2000-10-27 00:16:23 +0000
commit67e938d0a4ec2ca3e2bbe2d39afe34e5146c0075 (patch)
tree2bfa99c7d3c2fcef2a775255d47af558732bead1 /sys/arch/i386
parent3baedb3aee3a7fa00893369f1616007172d20251 (diff)
more precise BUFCACHEPERCENT calculations.
from gluk@ptci.ru; deraadt@ and niklas@ ok
Diffstat (limited to 'sys/arch/i386')
-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 6aa789d730b..849b7bc3a6f 100644
--- a/sys/arch/i386/i386/machdep.c
+++ b/sys/arch/i386/i386/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.136 2000/08/11 18:38:58 deraadt Exp $ */
+/* $OpenBSD: machdep.c,v 1.137 2000/10/27 00:16:14 mickey Exp $ */
/* $NetBSD: machdep.c,v 1.214 1996/11/10 03:16:17 thorpej Exp $ */
/*-
@@ -490,8 +490,8 @@ allocsys(v)
if (physmem < btoc(2 * 1024 * 1024))
bufpages = physmem / (10 * CLSIZE);
else
- bufpages = (btoc(2 * 1024 * 1024) + physmem) /
- ((100/BUFCACHEPERCENT) * CLSIZE);
+ bufpages = (btoc(2 * 1024 * 1024) + physmem) *
+ BUFCACHEPERCENT / (100 * CLSIZE);
}
if (nbuf == 0) {
nbuf = bufpages;