Fix syntaxe

master
Heuzef 5 years ago
parent 1349fd998e
commit 18bb29265a
  1. 2
      Check.pm

@ -52,7 +52,7 @@ sub action
# Age
my $lastBackup = ( @Backups[-1]->{type} =~ m/^full|incr$/ ) ? -1 : -2;
$lastAge = sprintf("%.1f", (time - $lastBackup{startTime}) / (24 * 3600));
$lastAge = sprintf("%.1f", (time - $Backups[$lastBackup]{startTime}) / (24 * 3600));
# Color for age
if ( $lastAge < $frequency ) {

Loading…
Cancel
Save