From ca8cb1c90edd1bd2584fd5be0dce787cc6b62bc4 Mon Sep 17 00:00:00 2001 From: Ori Livneh Date: Thu, 25 Jun 2015 21:56:49 -0700 Subject: [PATCH] Fix-up for I2ac604d3c042d Log time until picked up. Change-Id: I67310aa2fdbfcb8b1fd394f490ef4885cf596b0c --- includes/jobqueue/JobRunner.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/jobqueue/JobRunner.php b/includes/jobqueue/JobRunner.php index 77c42380a1..3dfffaeabb 100644 --- a/includes/jobqueue/JobRunner.php +++ b/includes/jobqueue/JobRunner.php @@ -203,8 +203,8 @@ class JobRunner implements LoggerAwareInterface { if ( $queuedTs ) { // Record time to run for the job type $pickupDelay = $popTime - $queuedTs; - $stats->timing( 'jobqueue.pickup_delay.all', $queuedTs ); - $stats->timing( "jobqueue.pickup_delay.$jType", $queuedTs ); + $stats->timing( 'jobqueue.pickup_delay.all', $pickupDelay ); + $stats->timing( "jobqueue.pickup_delay.$jType", $pickupDelay ); } // Mark the job as done on success or when the job cannot be retried -- 2.20.1