/[BackupPC]/trunk/bin/BackupPC_updatedb
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/bin/BackupPC_updatedb

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

revision 90 by dpavlin, Sun Aug 28 17:42:25 2005 UTC revision 92 by dpavlin, Sun Aug 28 18:02:58 2005 UTC
# Line 89  sub hest_update { Line 89  sub hest_update {
89    
90          my ($host_id, $share_id, $num) = @_;          my ($host_id, $share_id, $num) = @_;
91    
92          print curr_time," updating HyperEstraier: files";          print curr_time," updating HyperEstraier: select files";
93    
94          my $t = time();          my $t = time();
95    
# Line 128  sub hest_update { Line 128  sub hest_update {
128          my $results = $sth->rows;          my $results = $sth->rows;
129    
130          if ($results == 0) {          if ($results == 0) {
131                  print " no files\n";                  print " - no files, skipping\n";
132                  return;                  return;
133          }          }
134    
# Line 145  sub hest_update { Line 145  sub hest_update {
145    
146          my $max = int($results / $dot);          my $max = int($results / $dot);
147    
148          print " index $index_path...";          print ", opening index $index_path...";
149          use HyperEstraier;          use HyperEstraier;
150          my $db = HyperEstraier::Database->new();          my $db = HyperEstraier::Database->new();
151    
# Line 201  sub hest_update { Line 201  sub hest_update {
201    
202          print "sync $added new files";          print "sync $added new files";
203          $db->sync();          $db->sync();
204          print " close";          print ", close";
205          $db->close();          $db->close();
206    
207          my $dur = (time() - $t) || 1;          my $dur = (time() - $t) || 1;

Legend:
Removed from v.90  
changed lines
  Added in v.92

  ViewVC Help
Powered by ViewVC 1.1.26