Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions reports/opendmarc-expire.in
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,8 @@ my $def_maxage = 180;
my $rows;
my $maxage;

my $now = time();

###
### NO user-serviceable parts beyond this point
###
Expand Down Expand Up @@ -192,7 +194,7 @@ if ($maxage <= 0)

if ($verbose)
{
print STDERR "$progname: started at " . localtime() . "\n";
print STDERR "$progname: started at " . localtime($now) . "\n";
}

my $dbi_dsn = "DBI:" . $dbscheme . ":database=" . $dbname .
Expand Down Expand Up @@ -564,7 +566,7 @@ if ($alltables)

if ($verbose)
{
print STDERR "$progname: terminating at " . localtime() . "\n";
print STDERR "$progname: terminating at " . localtime() . " (duration=" . scalar(time() - $now) . ")\n";
}

$dbi_h->disconnect;
Expand Down
2 changes: 1 addition & 1 deletion reports/opendmarc-reports.in
Original file line number Diff line number Diff line change
Expand Up @@ -1061,7 +1061,7 @@ $dbi_s->finish;

if ($verbose)
{
print STDERR "$progname: terminating at " . localtime() . "\n";
print STDERR "$progname: terminating at " . localtime() . " (duration=" . scalar(time() - $now) . ")\n";
}

$dbi_h->disconnect;
Expand Down