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:
Stefan Schantl
2019-03-16 12:57:25 +01:00
committed by Michael Tremer
parent e1d9148b61
commit 7bf5b0f221

View File

@@ -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);
}
}