Commit 0f73d88f authored by Franco Fichtner's avatar Franco Fichtner

unbound: tweak previous

parent 32e545ef
......@@ -116,11 +116,11 @@ function unbound_optimization()
}
/* Larger socket buffer for busy servers */
$so = floor((get_default_sysctl_value('kern.ipc.maxsockbuf')/1024/1024)-1);
$so = floor(get_default_sysctl_value('kern.ipc.maxsockbuf')/1024/1024);
if ($so > 0) {
$optimization['so_rcvbuf'] = "so-rcvbuf: {$so}m";
} else {
unset($optimization['so_rcvbuf']);
$optimization['so_rcvbuf'] = '#so-rcvbuf: 4m';
}
return $optimization;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment