Change-Id: I7fbf000c9b9edf433ac6723843a96fcaf937b5c7
$claimed = $queue->getAcquiredCount();
$abandoned = $queue->getAbandonedCount();
$active = max( 0, $claimed - $abandoned );
$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); " .
$this->output(
"{$type}: $pending queued; " .
"$claimed claimed ($active active, $abandoned abandoned); " .