declare $bpc out of loop

master
Heuzef 5 years ago
parent 52381153c9
commit 4e0293199b
  1. 3
      Check.pm

@ -27,15 +27,14 @@ sub action
{ {
# Init # Init
my($str, $strGood, $header); my($str, $strGood, $header);
GetStatusInfo("hosts info"); GetStatusInfo("hosts info");
my $Privileged = CheckPermission(); my $Privileged = CheckPermission();
my $bpc = BackupPC::Lib->new();
# Start loop # Start loop
foreach my $host ( GetUserHosts(1) ) { foreach my $host ( GetUserHosts(1) ) {
my($incrAge, $reasonHilite, $frequency, $lastAge, $lastAgeColor, $tempState, $tempReason, $lastXferErrors, $lastXferErrorsColor); my($incrAge, $reasonHilite, $frequency, $lastAge, $lastAgeColor, $tempState, $tempReason, $lastXferErrors, $lastXferErrorsColor);
my($shortErr); my($shortErr);
my $bpc = BackupPC::Lib->new();
my @Backups = $bpc->BackupInfoRead($host); my @Backups = $bpc->BackupInfoRead($host);
my $fullAge = $incrAge = $lastAge = -1; my $fullAge = $incrAge = $lastAge = -1;

Loading…
Cancel
Save