Skip to content

Commit

Permalink
zmdailyreport: fix parsing of rsyslog precision timestamps
Browse files Browse the repository at this point in the history
  • Loading branch information
jjakob committed Apr 7, 2021
1 parent 4b5605e commit 9a9fbd8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libexec/zmdailyreport
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@ if (fork()) {

while (<LOG>) {
my $line = $_;
if ($line =~ /$today/o) {
if ($line =~ /$today|$datestring/o) {
print PFOUT $line;
$found = 1;
} elsif ($found) {
Expand All @@ -96,7 +96,7 @@ if (fork()) {
$found = 0;
while (<LOG>) {
my $line = $_;
if ($line =~ /$today/o) {
if ($line =~ /$today|$datestring/o) {
print PFOUT $line;
$found = 1;
} elsif ($found) {
Expand Down

0 comments on commit 9a9fbd8

Please sign in to comment.