[Libreoffice-commits] dev-tools.git: scripts/download-stats.pl

Jan Holesovsky kendy at suse.cz
Mon May 20 04:49:12 PDT 2013


 scripts/download-stats.pl |   12 ++++++------
 1 file changed, 6 insertions(+), 6 deletions(-)

New commits:
commit 7f1f81ff95047a7af3621f46ae072df83990ce38
Author: Jan Holesovsky <kendy at suse.cz>
Date:   Mon May 20 13:46:51 2013 +0200

    First update, then collect the filenames.

diff --git a/scripts/download-stats.pl b/scripts/download-stats.pl
index 3e128e0..bbe2db0 100755
--- a/scripts/download-stats.pl
+++ b/scripts/download-stats.pl
@@ -64,7 +64,7 @@ sub find_logs($)
     my @logfiles;
 
     if (-f $path ) {
-	if ($path =~ m/documentfoundation\.org.*access_log/) {
+	if ($path =~ m/documentfoundation\.org.*-access_log/) {
 	    if ($verbose) {
 		print STDERR "hit: $path\n";
 	    }
@@ -441,17 +441,17 @@ if (!defined $path_to_log_tree) {
     $path_to_log_tree = "$path_to_log_tree/downloads";
 }
 
-my @log_filenames = find_logs ($path_to_log_tree);
-if ($verbose) {
-    print STDERR "Have log paths of:\n\t" . (join("\n\t", @log_filenames)) . "\n";
-}
-
 # update first
 if ($rsync_first) {
     system('rsync --delete -av bilbo.documentfoundation.org:/var/log/apache2/download.documentfoundation.org/ downloads/download.documentfoundation.org/ 1>&2');
     system('rsync --delete -av bilbo.documentfoundation.org:/var/log/apache2/downloadarchive.documentfoundation.org/ downloads/downloadarchive.documentfoundation.org/ 1>&2');
 }
 
+my @log_filenames = find_logs ($path_to_log_tree);
+if ($verbose) {
+    print STDERR "Have log paths of:\n\t" . (join("\n\t", @log_filenames)) . "\n";
+}
+
 # the slow piece - parsing the logs
 my $files_in = @log_filenames;
 my $parallel = $cpus_to_use;


More information about the Libreoffice-commits mailing list