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:
44596df
)
Use max() for job count for sanity
author
Aaron Schulz
<aschulz@wikimedia.org>
Thu, 10 Oct 2013 21:56:11 +0000
(14:56 -0700)
committer
Aaron Schulz
<aschulz@wikimedia.org>
Thu, 10 Oct 2013 21:56:11 +0000
(14:56 -0700)
Change-Id: If5979ccbede2dd70fcd26b7caae82419ddffe542
maintenance/showJobs.php
patch
|
blob
|
history
diff --git
a/maintenance/showJobs.php
b/maintenance/showJobs.php
index
78c2e48
..
afd7c74
100644
(file)
--- a/
maintenance/showJobs.php
+++ b/
maintenance/showJobs.php
@@
-59,7
+59,7
@@
class ShowJobs extends Maintenance {
$pending = $queue->getSize();
$claimed = $queue->getAcquiredCount();
$abandoned = $queue->getAbandonedCount();
- $active =
$claimed - $abandoned
;
+ $active =
max( 0, $claimed - $abandoned )
;
if ( ( $pending + $claimed ) > 0 ) {
$this->output(
"{$type}: $pending queued; " .