diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2011-06-22 11:28:20 +0200 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2011-06-22 11:28:20 +0200 |
commit | 9db190c7e736ec8d063187d4241b59feaf7dc2d1 (patch) | |
tree | 46d1a0dee7febef5c2d57a9f7b972be16a163b3d /maintenance/storage/storageTypeStats.php | |
parent | 78677c7bbdcc9739f6c10c75935898a20e1acd9e (diff) |
update to MediaWiki 1.17.0
Diffstat (limited to 'maintenance/storage/storageTypeStats.php')
-rw-r--r-- | maintenance/storage/storageTypeStats.php | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/maintenance/storage/storageTypeStats.php b/maintenance/storage/storageTypeStats.php index 85858620..be86c531 100644 --- a/maintenance/storage/storageTypeStats.php +++ b/maintenance/storage/storageTypeStats.php @@ -1,6 +1,6 @@ <?php -require_once( dirname(__FILE__).'/../Maintenance.php' ); +require_once( dirname( __FILE__ ) . '/../Maintenance.php' ); class StorageTypeStats extends Maintenance { function execute() { @@ -12,7 +12,6 @@ class StorageTypeStats extends Maintenance { exit( 1 ); } - $rangeStart = 0; $binSize = intval( pow( 10, floor( log10( $endId ) ) - 3 ) ); if ( $binSize < 100 ) { $binSize = 100; @@ -86,7 +85,7 @@ SQL; echo str_repeat( '-', 120 ) . "\n"; foreach ( $stats as $flags => $flagStats ) { foreach ( $flagStats as $class => $entry ) { - printf( $format, $flags, $class, $entry['count'], + printf( $format, $flags, $class, $entry['count'], sprintf( "%-13d - %-13d", $entry['first'], $entry['last'] ) ); } } @@ -94,5 +93,5 @@ SQL; } $maintClass = 'StorageTypeStats'; -require_once( DO_MAINTENANCE ); +require_once( RUN_MAINTENANCE_IF_MAIN ); |