aboutsummaryrefslogtreecommitdiffstats
path: root/config/snort
diff options
context:
space:
mode:
authorbmeeks8 <bmeeks8@bellsouth.net>2014-10-09 11:10:31 -0400
committerbmeeks8 <bmeeks8@bellsouth.net>2014-10-09 11:10:31 -0400
commite65dc63a88e4bd40c21d99c7abe6f8c7c7a9d51b (patch)
tree2334f9a86f730cc820c3a6bb7b4f54eae5529221 /config/snort
parent492fd97587479b0c15a74d84b749cb974c183975 (diff)
downloadpfsense-packages-e65dc63a88e4bd40c21d99c7abe6f8c7c7a9d51b.tar.gz
pfsense-packages-e65dc63a88e4bd40c21d99c7abe6f8c7c7a9d51b.tar.bz2
pfsense-packages-e65dc63a88e4bd40c21d99c7abe6f8c7c7a9d51b.zip
Oops, log mgmt settings are global, so fix array reference.
Diffstat (limited to 'config/snort')
-rw-r--r--config/snort/snort_check_cron_misc.inc4
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);
}