|
|
@ -34,7 +34,7 @@ sub action |
|
|
|
|
|
|
|
|
|
|
|
foreach my $host ( GetUserHosts(1) ) { |
|
|
|
foreach my $host ( GetUserHosts(1) ) { |
|
|
|
my($fullDur, $incrCnt, $incrAge, $fullSize, $fullRate, $reasonHilite, |
|
|
|
my($fullDur, $incrCnt, $incrAge, $fullSize, $fullRate, $reasonHilite, |
|
|
|
$lastAge, $tempState, $tempReason, $lastXferErrors); |
|
|
|
$lastAge, $lastAgeColor, $tempState, $tempReason, $lastXferErrors); |
|
|
|
my($shortErr); |
|
|
|
my($shortErr); |
|
|
|
my @Backups = $bpc->BackupInfoRead($host); |
|
|
|
my @Backups = $bpc->BackupInfoRead($host); |
|
|
|
my $fullCnt = $incrCnt = 0; |
|
|
|
my $fullCnt = $incrCnt = 0; |
|
|
@ -72,11 +72,11 @@ sub action |
|
|
|
$lastAge = ""; |
|
|
|
$lastAge = ""; |
|
|
|
} else { |
|
|
|
} else { |
|
|
|
$lastAge = sprintf("%.1f", (time - $lastAge) / (24 * 3600)); |
|
|
|
$lastAge = sprintf("%.1f", (time - $lastAge) / (24 * 3600)); |
|
|
|
if ( $lastAge < 1.1 ) { |
|
|
|
} |
|
|
|
$lastAgeColor = "MediumSeaGreen"; |
|
|
|
if ( $lastAge < 1.1 ) { |
|
|
|
} else { |
|
|
|
$lastAgeColor = "MediumSeaGreen"; |
|
|
|
$lastAgeColor = "Tomato"; |
|
|
|
} else { |
|
|
|
} |
|
|
|
$lastAgeColor = "Tomato"; |
|
|
|
} |
|
|
|
} |
|
|
|
if ( $fullAge < 0 ) { |
|
|
|
if ( $fullAge < 0 ) { |
|
|
|
$fullAge = ""; |
|
|
|
$fullAge = ""; |
|
|
|