From e712a37ea9f61a2b8a7e4a4ed4c328abd1fc90d1 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Mon, 25 Feb 2013 10:26:25 -0800 Subject: [PATCH] Mention the batch-download time in copyFileBackend.php. Change-Id: Idc46f9ed276d116b5b7eda0fbf354659243b646f --- maintenance/copyFileBackend.php | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/maintenance/copyFileBackend.php b/maintenance/copyFileBackend.php index 4e3c7faf77..f2c4ac5414 100644 --- a/maintenance/copyFileBackend.php +++ b/maintenance/copyFileBackend.php @@ -141,7 +141,11 @@ class CopyFileBackend extends Maintenance { foreach ( $srcPathsRel as $srcPathRel ) { $srcPaths[] = $src->getRootStoragePath() . "/$backendRel/$srcPathRel"; } + $t_start = microtime( true ); $fsFiles = $src->getLocalReferenceMulti( array( 'srcs' => $srcPaths, 'latest' => 1 ) ); + $ellapsed_ms = floor( ( microtime( true ) - $t_start ) * 1000 ); + $this->output( "\nDownloaded these file(s) [{$ellapsed_ms}ms]:\n" . + implode( "\n", $srcPaths ) . "\n\n" ); } // Determine what files need to be copied over... -- 2.20.1