WordPress.org

Make WordPress Core

Changes between Version 1 and Version 2 of Ticket #14889, comment 28


Ignore:
Timestamp:
06/08/2011 01:01:25 PM (7 years ago)
Author:
hakre
Comment:

Legend:

Unmodified
Added
Removed
Modified
  • Ticket #14889, comment 28

    v1 v2  
    66                && ( $last = strtolower( substr( $size, -1 ) ) )
    77                && ( $pos = strpos( ' kmg', $last , 1 ) )
    8                 && $bytes = round( $bytes * pow( 1024, $pos ) )
     8                && $bytes *= pow( 1024, $pos )
    99                ;
    10         return $bytes;
     10        return round( $bytes );
    1111}
    1212}}}