aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWarren Baker <warren@decoy.co.za>2011-11-06 12:46:40 +0200
committerWarren Baker <warren@decoy.co.za>2011-11-06 12:46:40 +0200
commit627830887af98bc13e2d7bb84cfc3ef14a39c3c8 (patch)
tree7ac45f119eedffda5de8eb8964fe01bad0baf41f
parent1d78cbed1448a41077ca878a9fd1e6e8e87520f7 (diff)
downloadpfsense-packages-627830887af98bc13e2d7bb84cfc3ef14a39c3c8.tar.gz
pfsense-packages-627830887af98bc13e2d7bb84cfc3ef14a39c3c8.tar.bz2
pfsense-packages-627830887af98bc13e2d7bb84cfc3ef14a39c3c8.zip
Add the ability to disable statistics
-rw-r--r--config/unbound/unbound.inc5
-rw-r--r--config/unbound/unbound.xml1
2 files changed, 5 insertions, 1 deletions
diff --git a/config/unbound/unbound.inc b/config/unbound/unbound.inc
index 76c35277..9314a0af 100644
--- a/config/unbound/unbound.inc
+++ b/config/unbound/unbound.inc
@@ -360,7 +360,10 @@ function unbound_resync_config() {
// Unbound Statistics
if($unbound_config['stats'] == "on") {
- $stats_interval = $unbound_config['stats_interval'];
+ if ($unbound_config['stats_interval'] == 'Disabled')
+ $stats_interval = 0;
+ else
+ $stats_interval = $unbound_config['stats_interval'];
$cumulative_stats = $unbound_config['cumulative_stats'];
if ($unbound_config['extended_stats'] == "on")
$extended_stats = "yes";
diff --git a/config/unbound/unbound.xml b/config/unbound/unbound.xml
index 5e6361d5..176d8686 100644
--- a/config/unbound/unbound.xml
+++ b/config/unbound/unbound.xml
@@ -183,6 +183,7 @@
<type>select</type>
<default_value>3600</default_value>
<options>
+ <option><name>Disabled</name><value>Disabled</value></option>
<option><name>5 minutes</name><value>300</value></option>
<option><name>10 minutes</name><value>600</value></option>
<option><name>20 minutes</name><value>1200</value></option>