From: Aaron Schulz Date: Mon, 25 Feb 2013 18:26:25 +0000 (-0800) Subject: Mention the batch-download time in copyFileBackend.php. X-Git-Tag: 1.31.0-rc.0~20571 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/journal.php?a=commitdiff_plain;h=e712a37ea9f61a2b8a7e4a4ed4c328abd1fc90d1;p=lhc%2Fweb%2Fwiklou.git Mention the batch-download time in copyFileBackend.php. Change-Id: Idc46f9ed276d116b5b7eda0fbf354659243b646f --- 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...