diff options
-rw-r--r-- | config/snort/snort_check_cron_misc.inc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/config/snort/snort_check_cron_misc.inc b/config/snort/snort_check_cron_misc.inc index 72ede20c..b39d8d1c 100644 --- a/config/snort/snort_check_cron_misc.inc +++ b/config/snort/snort_check_cron_misc.inc @@ -209,7 +209,7 @@ if ($config['installedpackages']['snortglobal']['enable_log_mgmt'] == 'on') { } // Prune aged-out perfmon stats logs if any exist - if ($value['stats_log_retention'] > 0) { + if ($config['installedpackages']['snortglobal']['stats_log_retention'] > 0) { $now = time(); $files = array(); $list = glob("{$snort_log_dir}/*"); @@ -219,7 +219,7 @@ if ($config['installedpackages']['snortglobal']['enable_log_mgmt'] == 'on') { } $prune_count = 0; foreach ($files as $f) { - if (($now - filemtime($f)) > ($value['stats_log_retention'] * 3600)) { + if (($now - filemtime($f)) > ($config['installedpackages']['snortglobal']['stats_log_retention'] * 3600)) { $prune_count++; unlink_if_exists($f); } |