r112311 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r112310‎ | r112311 | r112312 >
Date:11:08, 24 February 2012
Author:ezachte
Status:deferred
Tags:
Comment:
new config file
Modified paths:
  • /trunk/wikistats/squids/SquidCountryScan.pl (modified) (history)
  • /trunk/wikistats/squids/SquidCountryScanConfig.pm (added) (history)

Diff [purge]

Index: trunk/wikistats/squids/SquidCountryScanConfig.pm
@@ -0,0 +1,7 @@
 2+#!/usr/bin/perl
 3+
 4+ $liblocation = "/home/ezachte/lib" ;
 5+
 6+ $path_root_production = "/a/ezachte/" ;
 7+ $path_root_test = "w:/! perl/squids/archive/" ; # Erik
 8+# $path_root_test = "?" ; # Andr�
Index: trunk/wikistats/squids/SquidCountryScan.pl
@@ -3,7 +3,7 @@
44 ## sub CollectRawData -> SquidDataCountries.csv
55 ## sub ProcessRawData <- SquidDataCountries.csv -> ??
66
7 - use config ;
 7+ use SquidCountryScanConfig ;
88 use lib $liblocation ;
99 use EzLib ;
1010 $trace_on_exit = $true ;
@@ -23,8 +23,7 @@
2424 # exit ;
2525 }
2626
27 - $path_root = "/a/ezachte/" ;
28 -# $path_root = "w:/! perl/squids/archive/" ;
 27+ $path_root = $job_runs_on_production_server ? $path_root_production : $path_root_test ;
2928
3029 $file_raw_data_monthly_visits = "$path_root/SquidDataVisitsPerCountryMonthly.csv" ;
3130 $file_raw_data_daily_visits = "$path_root/SquidDataVisitsPerCountryDaily.csv" ;
@@ -38,7 +37,7 @@
3938
4039 &CollectRawData ('visits', $file_per_country_visits, $file_per_country_visits_old, $file_raw_data_monthly_visits, $file_raw_data_daily_visits) ;
4140 &CollectRawData ('saves', $file_per_country_saves, $file_per_country_saves_old, $file_raw_data_monthly_saves, $file_raw_data_daily_saves) ;
42 -# &ProcessRawData ;
 41+ &ProcessRawData ;
4342
4443 exit ;
4544

Status & tagging log