summaryrefslogtreecommitdiffstats
path: root/extensions/BMO/lib
diff options
context:
space:
mode:
authorByron Jones <bjones@mozilla.com>2012-01-12 16:11:15 +0100
committerByron Jones <bjones@mozilla.com>2012-01-12 16:11:15 +0100
commitaed743e23b791f39cd3d31629fe65a36a623739f (patch)
treee3361975de8cbee9c32099c535e81dd2d08d774c /extensions/BMO/lib
parent488547ec68fcc3de4a0fb63d469861ca74392ec9 (diff)
downloadbugzilla-aed743e23b791f39cd3d31629fe65a36a623739f.tar.gz
bugzilla-aed743e23b791f39cd3d31629fe65a36a623739f.tar.xz
Bug 715424: show both the insert time and run time for queued mail
Diffstat (limited to 'extensions/BMO/lib')
-rw-r--r--extensions/BMO/lib/Reports.pm4
1 files changed, 3 insertions, 1 deletions
diff --git a/extensions/BMO/lib/Reports.pm b/extensions/BMO/lib/Reports.pm
index aa7ca5690..e9e2670b9 100644
--- a/extensions/BMO/lib/Reports.pm
+++ b/extensions/BMO/lib/Reports.pm
@@ -573,7 +573,8 @@ sub email_queue_report {
my $query = "
SELECT j.jobid,
- j.run_after AS timestamp,
+ j.insert_time,
+ j.run_after AS run_time,
COUNT(e.jobid) AS error_count,
MAX(e.error_time) AS error_time,
e.message AS error_message
@@ -583,6 +584,7 @@ sub email_queue_report {
ORDER BY j.run_after";
$vars->{'jobs'} = $dbh->selectall_arrayref($query, { Slice => {} });
+ $vars->{'now'} = (time);
}
1;