$next = null;
do {
- $limit = min( $this->mBatchSize, $end - $start + 1 ); // don't go pass ending ID
+ $limit = min( $this->getBatchSize(), $end - $start + 1 ); // don't go pass ending ID
$this->output( "Doing id $start to " . ( $start + $limit - 1 ) . "...\n" );
$entries = $src->getJournal()->getChangeEntries( $start, $limit, $next );
sleep( 10 ); // wait and retry copy again
$status = $dst->doQuickOperations( $ops, [ 'bypassReadOnly' => 1 ] );
}
- $ellapsed_ms = floor( ( microtime( true ) - $t_start ) * 1000 );
+ $elapsed_ms = floor( ( microtime( true ) - $t_start ) * 1000 );
if ( $status->isOK() && $this->getOption( 'verbose' ) ) {
- $this->output( "Synchronized these file(s) [{$ellapsed_ms}ms]:\n" .
+ $this->output( "Synchronized these file(s) [{$elapsed_ms}ms]:\n" .
implode( "\n", $dPaths ) . "\n" );
}