<?php
/**
* Squid purge benchmark script
- * @package MediaWiki
- * @subpackage Maintenance
+ * @addtogroup Maintenance
*/
/** */
}
if( !$wgUseSquid ) {
- die( "Squid purge benchmark doesn't do much without squid support on.\n" );
+ wfDie( "Squid purge benchmark doesn't do much without squid support on.\n" );
} else {
printf( "There are %d defined squid servers:\n", count( $wgSquidServers ) );
#echo implode( "\n", $wgSquidServers ) . "\n";
if( isset( $options['count'] ) ) {
- $lengths = array( IntVal( $options['count'] ) );
+ $lengths = array( intval( $options['count'] ) );
} else {
$lengths = array( 1, 10, 100 );
}
print "$trial\n";
}
}
-?>
\ No newline at end of file