X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2Fstorage%2FstorageTypeStats.php;h=e33057f6127150d80262da3018e3f61418d6fa66;hb=11cb289cfc45fd40056bccae208934b11c98c10e;hp=190bb69628209914497a0c8f1cfcb3da5e164f8d;hpb=43396f98e15a80db4ef76315504c9cc35da8ad07;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/storage/storageTypeStats.php b/maintenance/storage/storageTypeStats.php index 190bb69628..e33057f612 100644 --- a/maintenance/storage/storageTypeStats.php +++ b/maintenance/storage/storageTypeStats.php @@ -1,6 +1,25 @@ = ' . $dbr->addQuotes( $rangeStart ), - 'old_id < ' . $dbr->addQuotes( $rangeStart + $binSize ) + 'old_id >= ' . intval( $rangeStart ), + 'old_id < ' . intval( $rangeStart + $binSize ) ), __METHOD__, array( 'GROUP BY' => 'old_flags, class' ) @@ -86,7 +104,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 +112,4 @@ SQL; } $maintClass = 'StorageTypeStats'; -require_once( DO_MAINTENANCE ); - +require_once RUN_MAINTENANCE_IF_MAIN;