summaryrefslogtreecommitdiffstats
path: root/etc/inc/unbound.inc
diff options
context:
space:
mode:
Diffstat (limited to 'etc/inc/unbound.inc')
-rw-r--r--etc/inc/unbound.inc2
1 files changed, 1 insertions, 1 deletions
diff --git a/etc/inc/unbound.inc b/etc/inc/unbound.inc
index b5de82f..f9b3340 100644
--- a/etc/inc/unbound.inc
+++ b/etc/inc/unbound.inc
@@ -45,7 +45,7 @@ function unbound_optimization() {
* Set the number of threads equal to number of CPUs.
* Use 1 to disable threading, if for some reason this sysctl fails.
*/
- $numprocs = intval(trim(exec('/sbin/sysctl -n kern.smp.cpus')));
+ $numprocs = intval(get_single_sysctl('kern.smp.cpus'));
if ($numprocs > 0)
$optimization['number_threads'] = "num-threads: {$numprocs}";
else
OpenPOWER on IntegriCloud