mirror of
https://github.com/vincentmli/bpfire.git
synced 2026-04-23 09:22:59 +02:00
IPS logging: Fix date comparison for last entry
Signed-off-by: Michael Tremer <michael.tremer@ipfire.org>
This commit is contained in:
@@ -446,12 +446,9 @@ sub processevent
|
||||
}
|
||||
$line++;
|
||||
|
||||
# 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; }
|
||||
if ($line gt 1 && $date eq "$monthstr/$daystr") { &append; }
|
||||
|
||||
close(LOG);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user