sort events before testing and deleting. Makes the output easier to grok

This commit is contained in:
Isaac Connor 2015-12-22 15:08:38 -05:00
parent 12a5621fb8
commit ac0425d14b
1 changed files with 2 additions and 2 deletions

View File

@ -266,8 +266,8 @@ MAIN: while( $loop ) {
{
if ( $fs_events )
{
while ( my ( $fs_event, $age ) = each(%$fs_events ) )
{
foreach my $fs_event ( sort { $a <=> $b } keys %$fs_events ) {
my $age = $fs_events->{$fs_event};
if ( !defined($db_events->{$fs_event}) && ($age < 0 || ($age > $Config{ZM_AUDIT_MIN_AGE})) )
{
aud_print( "Filesystem event '$fs_monitor/$fs_event' does not exist in database" );