From 627830887af98bc13e2d7bb84cfc3ef14a39c3c8 Mon Sep 17 00:00:00 2001 From: Warren Baker Date: Sun, 6 Nov 2011 12:46:40 +0200 Subject: Add the ability to disable statistics --- config/unbound/unbound.inc | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'config/unbound/unbound.inc') 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"; -- cgit v1.2.3