Index: trunk/extensions/APC/APCHostMode.php |
— | — | @@ -34,6 +34,7 @@ |
35 | 35 | $numMiss = $wgLang->formatNum( $c['num_misses'] ); |
36 | 36 | $numReqs = $c['num_hits']+$c['num_misses']; |
37 | 37 | $cPeriod = time()-$c['start_time']; |
| 38 | + if ( !$cPeriod ) $cPeriod = 1; |
38 | 39 | $rateReqs = APCUtils::formatReqPerS( $numReqs / $cPeriod ); |
39 | 40 | $rateHits = APCUtils::formatReqPerS( $c['num_hits'] / $cPeriod ); |
40 | 41 | $rateMiss = APCUtils::formatReqPerS( $c['num_misses'] / $cPeriod ); |