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
my($str, $strGood, $header);
GetStatusInfo("hosts info");
my $Privileged = CheckPermission();
my $bpc = BackupPC::Lib->new();
# Start loop
foreach my $host ( GetUserHosts(1) ) {
my($incrAge, $reasonHilite, $frequency, $lastAge, $lastAgeColor, $tempState, $tempReason, $lastXferErrors, $lastXferErrorsColor);
my($shortErr);
my $bpc = BackupPC::Lib->new();
my @Backups = $bpc->BackupInfoRead($host);
my $fullAge = $incrAge = $lastAge = -1;

Loading…
Cancel
Save