diff options
author | Ermal <eri@pfsense.org> | 2012-07-15 21:47:33 +0000 |
---|---|---|
committer | Ermal <eri@pfsense.org> | 2012-07-15 21:47:33 +0000 |
commit | d659782c4802641b09de08df12ab88746e453f38 (patch) | |
tree | f41fb64c51749551d08d051fa0ac93ce130558f1 /config/snort/snort_alerts.php | |
parent | 633f068a5cd54c5fe6bcbab51e5c0d5846a53d9a (diff) | |
download | pfsense-packages-d659782c4802641b09de08df12ab88746e453f38.tar.gz pfsense-packages-d659782c4802641b09de08df12ab88746e453f38.tar.bz2 pfsense-packages-d659782c4802641b09de08df12ab88746e453f38.zip |
Actually sort in reverse to have the last as first in GUI
Diffstat (limited to 'config/snort/snort_alerts.php')
-rw-r--r-- | config/snort/snort_alerts.php | 2 |
1 files changed, 1 insertions, 1 deletions
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 */ |