dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0cec6cf
)
Made showJobs.php show queues with just abandoned jobs too
author
Aaron Schulz
<aschulz@wikimedia.org>
Tue, 19 Aug 2014 21:13:30 +0000
(14:13 -0700)
committer
BryanDavis
<bdavis@wikimedia.org>
Thu, 21 Aug 2014 17:53:34 +0000
(17:53 +0000)
Change-Id: I7fbf000c9b9edf433ac6723843a96fcaf937b5c7
maintenance/showJobs.php
patch
|
blob
|
history
diff --git
a/maintenance/showJobs.php
b/maintenance/showJobs.php
index
38f346b
..
b8dc554
100644
(file)
--- 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); " .