Index: trunk/extensions/FlaggedRevs/maintenance/updateStats.inc |
— | — | @@ -143,9 +143,13 @@ |
144 | 144 | $minTS = max($minTS,$installed); |
145 | 145 | # Get timestamp boundaries |
146 | 146 | $timeCondition = 'rev_timestamp BETWEEN '.$encMinTS.' AND '.$encMaxTS; |
147 | | - # Modulus (to spread out over range) |
148 | | - $mod = intval($rows/$size); |
149 | | - $mod = max($mod,1); # $mod >= 1 |
| 147 | + if ( FlaggedRevs::stableOnlyIfConfigured() ) { |
| 148 | + $mod = 1; // can't estimate $mod based on all edits in the range |
| 149 | + } else { |
| 150 | + # Modulus (to spread out over range) |
| 151 | + $mod = intval($rows/$size); |
| 152 | + $mod = max($mod,1); # $mod >= 1 |
| 153 | + } |
150 | 154 | # For edits that started off pending, how long do they take to get reviewed? |
151 | 155 | # Get the *first* reviewed rev *after* each RC item and get the average difference. |
152 | 156 | # Only do this for revisions to pages that *were* already logged as reviewed. |