diff --git a/reports/opendmarc-expire.in b/reports/opendmarc-expire.in index 326a5a38..1d3e226e 100755 --- a/reports/opendmarc-expire.in +++ b/reports/opendmarc-expire.in @@ -54,6 +54,8 @@ my $def_maxage = 180; my $rows; my $maxage; +my $now = time(); + ### ### NO user-serviceable parts beyond this point ### @@ -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 . @@ -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; diff --git a/reports/opendmarc-reports.in b/reports/opendmarc-reports.in index 69a2194b..675efee5 100755 --- a/reports/opendmarc-reports.in +++ b/reports/opendmarc-reports.in @@ -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;