aboutsummaryrefslogtreecommitdiffstats
path: root/config/unbound/unbound.inc
diff options
context:
space:
mode:
Diffstat (limited to 'config/unbound/unbound.inc')
-rw-r--r--config/unbound/unbound.inc5
1 files changed, 4 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";