r108288 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r108287‎ | r108288 | r108289 >
Date:22:18, 6 January 2012
Author:hashar
Status:ok
Tags:
Comment:
rv r108284 since PHP has different behaviors

should fix jenkins
Modified paths:
  • /trunk/phase3/languages/Language.php (modified) (history)

Diff [purge]

Index: trunk/phase3/languages/Language.php
@@ -3820,7 +3820,7 @@
38213821 if ( $bps <= 0 ) {
38223822 return str_replace( '$1', $this->formatNum( $bps ), $this->getMessageFromDB( 'bitrate-bits' ) );
38233823 }
3824 - $unitIndex = (int)floor( log( $bps, 10 ) / 3 );
 3824+ $unitIndex = (int)floor( log10( $bps ) / 3 );
38253825 $mantissa = $bps / pow( 1000, $unitIndex );
38263826
38273827 $maxIndex = count( $units ) - 1;

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r108284Fix formatBitrate behavior on Mac OS X...hashar21:49, 6 January 2012

Status & tagging log