convert lastAge timestamp

master
Heuzef 5 years ago
parent 255eaa8ed7
commit af73cad438
  1. 2
      Check.pm

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

Loading…
Cancel
Save