Changeset 428
- Timestamp:
- 01/09/07 15:01:35 (6 years ago)
- Files:
-
- 1 modified
-
postprocessors/imdb_augment_data (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
postprocessors/imdb_augment_data
r314 r428 28 28 29 29 use LWP::UserAgent; 30 use Time::HiRes qw(gettimeofday tv_interval);31 30 use XMLTV; 32 use XMLTV::ProgressBar;33 31 use POSIX qw(strftime mktime); 34 32 use Getopt::Long; … … 37 35 use Compress::Zlib; 38 36 use DateTime::Format::Strptime; 39 use Cwd;40 37 41 38 # … … 43 40 # 44 41 45 my $script_start_time = [gettimeofday];42 my $script_start_time = time; 46 43 my %stats; 47 44 my $data_cache; … … 65 62 66 63 my $opt = { }; 67 $opt->{output_file} = cwd() . "/output.xmltv";68 $opt->{cache_file} = cwd() . "/imdb_augment_data.cache";64 $opt->{output_file} = "output.xmltv"; 65 $opt->{cache_file} = "imdb_augment_data.cache"; 69 66 $opt->{lang} = "en"; 70 67 $opt->{debug} = 0; … … 316 313 sub print_stats 317 314 { 318 printf "STATS: %s v%s completed in %0.2f seconds", 319 $progname, $version, tv_interval($script_start_time); 315 my $now = time; 316 printf "STATS: %s v%s completed in %d seconds", 317 $progname, $version, ($now-$script_start_time); 320 318 foreach my $key (sort keys %stats) { 321 319 printf ", %d %s",$stats{$key},$key;
