master
Heuzef 5 years ago
parent 6cae1de26c
commit 62ffb46856
  1. 4
      Check.pm

@ -51,9 +51,13 @@ sub action
} }
# Age # Age
for ( my $i = 0 ; $i < @Backups ; $i++ ) {
if ( $Backups[$i]{type} eq "full" or "incr" ) { if ( $Backups[$i]{type} eq "full" or "incr" ) {
if ( $Backups[$i]{type} eq "full" or "incr" ) {
$lastAge = sprintf("%.1f", (time - $Backups[-1]{startTime}) / (24 * 3600));
$lastAge = sprintf("%.1f", (time - $Backups[-1]{startTime}) / (24 * 3600)); $lastAge = sprintf("%.1f", (time - $Backups[-1]{startTime}) / (24 * 3600));
} }
}
# Color for age # Color for age
if ( $lastAge < $frequency ) { if ( $lastAge < $frequency ) {

Loading…
Cancel
Save