display number of new and total files in each increment
authordpavlin <dpavlin@8392b6e1-25fa-0310-8288-cc32f8e212ea>
Fri, 19 Aug 2005 15:38:56 +0000 (15:38 +0000)
committerdpavlin <dpavlin@8392b6e1-25fa-0310-8288-cc32f8e212ea>
Fri, 19 Aug 2005 15:38:56 +0000 (15:38 +0000)
git-svn-id: svn+ssh://llin/home/dpavlin/private/svn/BackupPC/trunk@40 8392b6e1-25fa-0310-8288-cc32f8e212ea

bin/BackupPC_updatedb

index 989d086..2cea60f 100755 (executable)
@@ -202,13 +202,17 @@ foreach my $host_key (keys %{$hosts}) {
        my $inc_nr = 0;
 
        foreach my $backup (@backups) {
+
                $inc_nr++;
                last if ($opt{m} && $inc_nr > $opt{m});
 
                my $backupNum = $backup->{'num'};
                my @backupShares = ();
 
-               print $hosts->{$host_key}->{'host'}, "\t#$backupNum\n";
+               print $hosts->{$host_key}->{'host'},
+                       "\t#$backupNum\t",
+                       $backup->{nFilesNew} || '?', "/", $backup->{nFiles} || '?',
+                       " files\n";
 
                $sth->{backups_broj}->execute($hostID, $backupNum);
                my ($broj) = $sth->{backups_broj}->fetchrow_array();