summaryrefslogtreecommitdiff
path: root/sys/arch/pmax
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/pmax
parent3baedb3aee3a7fa00893369f1616007172d20251 (diff)
more precise BUFCACHEPERCENT calculations.
from gluk@ptci.ru; deraadt@ and niklas@ ok
Diffstat (limited to 'sys/arch/pmax')
-rw-r--r--sys/arch/pmax/pmax/machdep.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/arch/pmax/pmax/machdep.c b/sys/arch/pmax/pmax/machdep.c
index a91be2883d4..d0ac1f70815 100644
--- a/sys/arch/pmax/pmax/machdep.c
+++ b/sys/arch/pmax/pmax/machdep.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: machdep.c,v 1.24 2000/07/04 05:46:23 maja Exp $ */
+/* $OpenBSD: machdep.c,v 1.25 2000/10/27 00:16:16 mickey Exp $ */
/* $NetBSD: machdep.c,v 1.67 1996/10/23 20:04:40 mhitch Exp $ */
/*
@@ -732,8 +732,8 @@ mach_init(argc, argv, code, cv)
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;