mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-10-13 13:25:37 +00:00
Don't assume we're in the root dir and intensify some comments about what we should be doing.
This commit is contained in:
parent
17162ac311
commit
3afe02e6e0
@ -11,14 +11,17 @@ use Socket; # DNS queries
|
||||
use File::Find; # grabbing the list of log files from the filesystem
|
||||
#use Fcntl ':flock'; # import LOCK_* constants for locking log files
|
||||
|
||||
# XXX Probably should use File::Basename for splitting paths up into paths and filenames.
|
||||
# XXX Should use File::Basename for splitting paths up into paths and filenames.
|
||||
|
||||
# Stuff that should really go into a config file.
|
||||
# XXX This stuff should go into a config file.
|
||||
my $root_dir = "/data/ftp-logs";
|
||||
my $sites = "aol|gatech|indiana|isc|oregonstate|rediris|scarlet|utah"; # XXX Maybe this should be generated by a database query.
|
||||
my $sites = "aol|gatech|indiana|isc|oregonstate|rediris|scarlet|utah"; # XXX Should be generated by a database query.
|
||||
my $verbose = 1;
|
||||
my $DO_REVERSE_DNS_LOOKUPS = 0;
|
||||
|
||||
chdir $root_dir
|
||||
or die "Can't change to root dir $root_dir: $!";
|
||||
|
||||
# Figure out what period of time to process the logs from. We use
|
||||
# a file's "modification time" attribute to store the most recent time
|
||||
# at which logs were processed, and we process logs between that time
|
||||
|
Loading…
Reference in New Issue
Block a user