WordPress.org

Make WordPress Core

Changeset 14327


Ignore:
Timestamp:
05/01/10 22:06:48 (5 years ago)
Author:
nacin
Message:

Show > 100% blog space used in MS Right Now.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/includes/ms.php

    r14319 r14327  
    446446    $used = get_dirsize( BLOGUPLOADDIR ) / 1024 / 1024; 
    447447 
    448     if ( $used > $space ) 
    449         $percentused = '100'; 
    450     else 
    451         $percentused = ( $used / $space ) * 100; 
     448    $percentused = ( $used / $space ) * 100; 
    452449 
    453450    if ( $space > 1000 ) { 
     
    460457    } 
    461458    ?> 
    462     <strong><?php printf( __( 'Used: %1s%% of %2s' ), number_format( $percentused ), $space );?></strong> 
     459    <strong><?php printf( __( 'Used: %1s%% of %2s' ), number_format( $percentused ), $space ); ?></strong> 
    463460    <?php 
    464461} 
Note: See TracChangeset for help on using the changeset viewer.