r34236 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r34235‎ | r34236 | r34237 >
Date:09:20, 5 May 2008
Author:nikerabbit
Status:old
Tags:
Comment:
* Suppress some notices
Modified paths:
  • /trunk/extensions/APC/APCHostMode.php (modified) (history)

Diff [purge]

Index: trunk/extensions/APC/APCHostMode.php
@@ -34,6 +34,7 @@
3535 $numMiss = $wgLang->formatNum( $c['num_misses'] );
3636 $numReqs = $c['num_hits']+$c['num_misses'];
3737 $cPeriod = time()-$c['start_time'];
 38+ if ( !$cPeriod ) $cPeriod = 1;
3839 $rateReqs = APCUtils::formatReqPerS( $numReqs / $cPeriod );
3940 $rateHits = APCUtils::formatReqPerS( $c['num_hits'] / $cPeriod );
4041 $rateMiss = APCUtils::formatReqPerS( $c['num_misses'] / $cPeriod );

Status & tagging log