summaryrefslogtreecommitdiff
path: root/sys/kern/kern_sysctl.c
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2013-06-11 21:51:56 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2013-06-11 21:51:56 +0000
commitcd87a702480f32ec4a472de5f0a77858ae410181 (patch)
treecd76d2922f4c6bb4be02de31d56b65fb5b6ce3c0 /sys/kern/kern_sysctl.c
parent1aa094ff74fcf42f3745741419a8609e573826b5 (diff)
sprinkle knf fairy dust over new buf code
Diffstat (limited to 'sys/kern/kern_sysctl.c')
-rw-r--r--sys/kern/kern_sysctl.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/sys/kern/kern_sysctl.c b/sys/kern/kern_sysctl.c
index 094720abbea..acb3aa89de7 100644
--- a/sys/kern/kern_sysctl.c
+++ b/sys/kern/kern_sysctl.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: kern_sysctl.c,v 1.237 2013/06/11 19:01:20 beck Exp $ */
+/* $OpenBSD: kern_sysctl.c,v 1.238 2013/06/11 21:51:55 tedu Exp $ */
/* $NetBSD: kern_sysctl.c,v 1.17 1996/05/20 17:49:05 mrg Exp $ */
/*-
@@ -579,10 +579,10 @@ kern_sysctl(int *name, u_int namelen, void *oldp, size_t *oldlenp, void *newp,
return (EINVAL);
}
if (bufcachepercent != opct) {
- pgs = (b_highpages_total + b_dmapages_total)
- * bufcachepercent / 100;
- b_dmamaxpages = b_dmapages_total * bufcachepercent
- / 100;
+ pgs = (b_highpages_total + b_dmapages_total) *
+ bufcachepercent / 100;
+ b_dmamaxpages = b_dmapages_total * bufcachepercent /
+ 100;
bufadjust(pgs); /* adjust bufpages */
bufhighpages = bufpages; /* set high water mark */
}