workaround for year 2020 problem

This commit is contained in:
Kei Tsuchiya
2020-01-10 00:57:27 +09:00
parent ed8eb16569
commit e9becc267c

View File

@@ -3666,6 +3666,7 @@ sub parse_event {
$pos_in_log -= 1 if $pos_in_log;
$raw_packet =~ s/\n20\Z//;
$raw_packet = "20$raw_packet" if $raw_packet =~ /\A20-\d\d-\d\d/; # workaround for 2020 problem
$raw_packet = "20$raw_packet" unless $raw_packet =~ m/\A20/;
$raw_packet =~ s/0x0000:.+?(450.) /0x0000: $1 /;