From 67e938d0a4ec2ca3e2bbe2d39afe34e5146c0075 Mon Sep 17 00:00:00 2001 From: Michael Shalayeff Date: Fri, 27 Oct 2000 00:16:23 +0000 Subject: more precise BUFCACHEPERCENT calculations. from gluk@ptci.ru; deraadt@ and niklas@ ok --- sys/arch/i386/i386/machdep.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'sys/arch/i386') 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; -- cgit v1.2.3