|
|
|
@ -51,12 +51,9 @@ sub action |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
# Age |
|
|
|
|
for ( my $i = 0 ; $i < @Backups ; $i++ ) { |
|
|
|
|
if ( $Backups[$i]{type} eq "full" or "incr" ) { |
|
|
|
|
if ( $Backups{type} eq "full" or "incr" ) { |
|
|
|
|
$lastAge = sprintf("%.1f", (time - $Backups[-1]{startTime}) / (24 * 3600)); |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Color for age |
|
|
|
|
if ( $lastAge < $frequency ) { |
|
|
|
@ -100,7 +97,6 @@ sub action |
|
|
|
|
|
|
|
|
|
# Ignore the last backup if it's not full or incr (which means it's either partial or active) |
|
|
|
|
my $i = ( $Backups[-1]->{type} =~ m/^full|incr$/ ) ? -1 : -2; |
|
|
|
|
|
|
|
|
|
$new_size = $Backups[$i]->{sizeNew}; |
|
|
|
|
$new_size_avg = int $sizes->mean; |
|
|
|
|
$new_size_q1 = eval { int $sizes->quantile(1) } || 0; |
|
|
|
|