/[webpac2]/trunk/run.pl
This is repository of my old source code which isn't updated any more. Go to git.rot13.org for current projects!
ViewVC logotype

Diff of /trunk/run.pl

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 335 by dpavlin, Sat Dec 31 14:00:36 2005 UTC revision 389 by dpavlin, Sun Jan 22 13:38:17 2006 UTC
# Line 17  use WebPAC::Output::Estraier 0.08; Line 17  use WebPAC::Output::Estraier 0.08;
17  use YAML qw/LoadFile/;  use YAML qw/LoadFile/;
18  use Getopt::Long;  use Getopt::Long;
19  use File::Path;  use File::Path;
20    use Time::HiRes qw/time/;
21    
22  =head1 NAME  =head1 NAME
23    
# Line 76  print "config = ",Dumper($config) if ($d Line 77  print "config = ",Dumper($config) if ($d
77  die "no databases in config file!\n" unless ($config->{databases});  die "no databases in config file!\n" unless ($config->{databases});
78    
79  my $total_rows = 0;  my $total_rows = 0;
80    my $start_t = time();
81    
82  while (my ($database, $db_config) = each %{ $config->{databases} }) {  while (my ($database, $db_config) = each %{ $config->{databases} }) {
83    
# Line 205  while (my ($database, $db_config) = each Line 207  while (my ($database, $db_config) = each
207    
208          };          };
209    
210          $log->info("$total_rows records indexed");          my $dt = time() - $start_t;
211            $log->info("$total_rows records indexed in " .
212                    sprintf("%.2f sec [%.2f rec/sec]",
213                            $dt, ($total_rows / $dt)
214                    )
215            );
216    
217          #          #
218          # add Hyper Estraier links to other databases          # add Hyper Estraier links to other databases

Legend:
Removed from v.335  
changed lines
  Added in v.389

  ViewVC Help
Powered by ViewVC 1.1.26