/[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 106 by dpavlin, Wed Aug 31 11:05:26 2005 UTC revision 107 by dpavlin, Wed Aug 31 20:58:39 2005 UTC
# Line 117  sub hest_update { Line 117  sub hest_update {
117          $hest_db = HyperEstraier::Database->new();          $hest_db = HyperEstraier::Database->new();
118          $hest_db->open($index_path, $HyperEstraier::Database::DBWRITER | $HyperEstraier::Database::DBCREAT);          $hest_db->open($index_path, $HyperEstraier::Database::DBWRITER | $HyperEstraier::Database::DBCREAT);
119    
120          print " increment is " . EST_CHUNK . " files";          print " increment is " . EST_CHUNK . " files:";
121    
122          my $results = 0;          my $results = 0;
123    
# Line 163  sub hest_update { Line 163  sub hest_update {
163                  $results = $sth->rows;                  $results = $sth->rows;
164    
165                  if ($results == 0) {                  if ($results == 0) {
166                          print " - no more files\n";                          print " - no new files\n";
167                          last;                          last;
168                  }                  }
169    
# Line 452  foreach my $host_key (keys %{$hosts}) { Line 452  foreach my $host_key (keys %{$hosts}) {
452                                  fmt_time($dur)                                  fmt_time($dur)
453                          );                          );
454    
455                          hest_update($hostID, $shareID, $backupNum);                          hest_update($hostID, $shareID, $backupNum) if ($nf + $nd > 0);
456                  }                  }
457    
458          }          }

Legend:
Removed from v.106  
changed lines
  Added in v.107

  ViewVC Help
Powered by ViewVC 1.1.26