diff options
author | Warren Baker <warren@decoy.co.za> | 2014-11-03 10:42:06 +0200 |
---|---|---|
committer | Warren Baker <warren@decoy.co.za> | 2014-11-03 12:08:25 +0200 |
commit | 46a989ce90db810784f46c78e273b069c7d0ca63 (patch) | |
tree | 51dc3df16c70e063b66550a932f5af4b5e22d874 /etc/inc/unbound.inc | |
parent | a431bfc9e698c753d9a54218af9076184deb6251 (diff) | |
download | pfsense-46a989ce90db810784f46c78e273b069c7d0ca63.zip pfsense-46a989ce90db810784f46c78e273b069c7d0ca63.tar.gz |
Indent here as well
Diffstat (limited to 'etc/inc/unbound.inc')
-rw-r--r-- | etc/inc/unbound.inc | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/etc/inc/unbound.inc b/etc/inc/unbound.inc index 8cd9227..8de8fe2 100644 --- a/etc/inc/unbound.inc +++ b/etc/inc/unbound.inc @@ -40,7 +40,7 @@ function unbound_optimization() { global $config; $optimization_settings = array(); - + /* * Set the number of threads equal to number of CPUs. * Use 1 to disable threading, if for some reason this sysctl fails. @@ -50,7 +50,7 @@ function unbound_optimization() { $optimization['number_threads'] = "num-threads: {$numprocs}"; else $optimization['number_threads'] = "num-threads: 1"; - + // Slabs to help reduce lock contention. if ($numprocs > 4) { $optimization['msg_cache_slabs'] = "msg-cache-slabs: {$numprocs}"; @@ -63,7 +63,7 @@ function unbound_optimization() { $optimization['infra_cache_slabs'] = "infra-cache-slabs: 4"; $optimization['key_cache_slabs'] = "key-cache-slabs: 4"; } - + // Memory usage default of 4MB $optimization['msg_cache_size'] = "msg-cache-size: 4m"; $optimization['rrset_cache_size'] = "rrset-cache-size: 8m"; @@ -431,7 +431,7 @@ function unbound_add_domain_overrides($pvt=false) { $domains = $config['unbound']['domainoverrides']; $sorted_domains = msort($domains, "domain"); - $result = array(); + $result = array(); foreach($sorted_domains as $domain) { $domain_key = current($domain); if (!isset($result[$domain_key])) @@ -453,7 +453,7 @@ function unbound_add_domain_overrides($pvt=false) { $domain_entries .= "\tstub-prime: no\n"; } } - + if ($pvt == true) return $domain_entries; else @@ -596,9 +596,9 @@ function unbound_control($action) { } break; default: - break; + break; - } + } } // Generation of Unbound statistics |