checkbox.less: Set cursor on label instead of pseudo element
[lhc/web/wiklou.git] / maintenance / showJobs.php
index 5e21130..b8dc554 100644 (file)
@@ -38,7 +38,10 @@ class ShowJobs extends Maintenance {
                parent::__construct();
                $this->mDescription = "Show number of jobs waiting in master database";
                $this->addOption( 'group', 'Show number of jobs per job type' );
-               $this->addOption( 'list', 'Show a complete list of all jobs in a machine-readable format, instead of statistics' );
+               $this->addOption(
+                       'list',
+                       'Show a complete list of all jobs in a machine-readable format, instead of statistics'
+               );
        }
 
        public function execute() {
@@ -61,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); " .