mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-20 07:53:01 +02:00
logs.cgi/ids.dat: Fixup processing dates from logfiles which contains a year
Signed-off-by: Stefan Schantl <stefan.schantl@ipfire.org> Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
committed by
Michael Tremer
parent
e1d9148b61
commit
7bf5b0f221
@@ -460,7 +460,14 @@ sub processevent
|
||||
}
|
||||
}
|
||||
$line++;
|
||||
unless ($line == 1 || $date ne "$monthstr/$daystr") { &append; }
|
||||
|
||||
# Split the date into single chunks.
|
||||
my ($month, $day, $year) = split('/', $date);
|
||||
|
||||
# Check if all data is collected and the date of the event fits the desired date to
|
||||
# get displayed.
|
||||
if ($line gt 1 || "$month/$day" eq "$monthstr/$daystr") { &append; }
|
||||
|
||||
close(LOG);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user