Fix indentation

master
Heuzef 5 years ago
parent a9721b0c36
commit e628059705
  1. 7
      Check.pm

@ -77,6 +77,7 @@ sub action
} else {
$lastAge = sprintf("%.1f", (time - $lastAge) / (24 * 3600));
}
# Color for age
if ( $lastAge < 1.1 ) {
$lastAgeColor = "MediumSeaGreen";
@ -128,11 +129,9 @@ if ( $Conf{BackupsDisable} == 1 ) {
$tempState = $Status{$host}{state};
$tempReason = $Status{$host}{reason};
}
$reasonHilite = " bgcolor=\"$reasonHilite\"" if ( $reasonHilite ne "" );
if ( $tempState ne "Status_backup_in_progress"
&& $tempState ne "Status_restore_in_progress"
&& $Conf{BackupsDisable} == 0
&& $Status{$host}{error} ne "" ) {
if ( $tempState ne "Status_backup_in_progress" && $tempState ne "Status_restore_in_progress" && $Conf{BackupsDisable} == 0 && $Status{$host}{error} ne "" ) {
($shortErr = $Status{$host}{error}) =~ s/(.{48}).*/$1.../;
$shortErr = " ($shortErr)";
}

Loading…
Cancel
Save