Skip to content

Reports: Fix task count logic for age histogram

Aklapper requested to merge aklapper/phabricator:aklapper-wmf/T294998 into wmf/stable

Sum of all task numbers in Age Distribution bars is 16 lower than number of "Remaining open tasks" in the Throughput section. Except for the first bucket, each bucket was off by 1 due to not adding the first match of the condition "$age > $current" to the next bucket.

Furthermore, $next === false cannot trigger as $next is always the initial bucket value 0 at this stage.

Bug: T294998

Merge request reports