From d659782c4802641b09de08df12ab88746e453f38 Mon Sep 17 00:00:00 2001 From: Ermal Date: Sun, 15 Jul 2012 21:47:33 +0000 Subject: Actually sort in reverse to have the last as first in GUI --- config/snort/snort_alerts.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'config') diff --git a/config/snort/snort_alerts.php b/config/snort/snort_alerts.php index 5a5ef744..df894b05 100644 --- a/config/snort/snort_alerts.php +++ b/config/snort/snort_alerts.php @@ -270,7 +270,7 @@ if ($pconfig['arefresh'] == 'on') /* make sure alert file exists */ if (file_exists("/var/log/snort/snort_{$if_real}{$snort_uuid}/alert")) { - exec("tail -{$anentries} /var/log/snort/snort_{$if_real}{$snort_uuid}/alert > /tmp/alert_{$snort_uuid}"); + exec("tail -{$anentries} /var/log/snort/snort_{$if_real}{$snort_uuid}/alert | sort -r > /tmp/alert_{$snort_uuid}"); if (file_exists("/tmp/alert_{$snort_uuid}")) { $counter = 0; /* 0 1 2 3 4 5 6 7 8 9 10 11 12 */ -- cgit v1.2.3