From: Aaron Schulz Date: Tue, 19 Aug 2014 21:13:30 +0000 (-0700) Subject: Made showJobs.php show queues with just abandoned jobs too X-Git-Tag: 1.31.0-rc.0~14336 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=915e1f07d3ca478f94bc6aefcc3bbb96d4f9fe4d;p=lhc%2Fweb%2Fwiklou.git Made showJobs.php show queues with just abandoned jobs too Change-Id: I7fbf000c9b9edf433ac6723843a96fcaf937b5c7 --- diff --git a/maintenance/showJobs.php b/maintenance/showJobs.php index 38f346b40d..b8dc554841 100644 --- a/maintenance/showJobs.php +++ b/maintenance/showJobs.php @@ -64,7 +64,7 @@ class ShowJobs extends Maintenance { $claimed = $queue->getAcquiredCount(); $abandoned = $queue->getAbandonedCount(); $active = max( 0, $claimed - $abandoned ); - if ( ( $pending + $claimed + $delayed ) > 0 ) { + if ( ( $pending + $claimed + $delayed + $abandoned ) > 0 ) { $this->output( "{$type}: $pending queued; " . "$claimed claimed ($active active, $abandoned abandoned); " .