add comments

master
Heuzef 5 years ago
parent ab2eb8fa19
commit 5ddcf81722
  1. 3
      check_size_consistency.pl

@ -11,8 +11,10 @@ my (undef,undef,$bkpuid,$bkpgid) = getpwnam('backuppc');
setuid($bkpuid) if ($uid ne $bkpuid); setuid($bkpuid) if ($uid ne $bkpuid);
setgid($bkpgid) if ($gid ne $bkpgid); setgid($bkpgid) if ($gid ne $bkpgid);
# Precise the host to check
my $host = $ARGV[0]; my $host = $ARGV[0];
# Get values
my $bpc = BackupPC::Lib->new(); my $bpc = BackupPC::Lib->new();
my @backups = $bpc->BackupInfoRead($host); my @backups = $bpc->BackupInfoRead($host);
my $mainConf = $bpc->ConfigDataRead(); my $mainConf = $bpc->ConfigDataRead();
@ -55,6 +57,7 @@ else {
$lastXferErrors = $backups[@backups-1]{xferErrs} if ( @backups ); $lastXferErrors = $backups[@backups-1]{xferErrs} if ( @backups );
$maxErrors = $conf->{MaxXferError} if (defined $conf->{MaxXferError}); $maxErrors = $conf->{MaxXferError} if (defined $conf->{MaxXferError});
# Print results
print<<"EOF"; print<<"EOF";
Usage: $0 <host> Usage: $0 <host>

Loading…
Cancel
Save