diff --git a/Check.pm b/Check.pm index 2e73119..7f1fbdf 100644 --- a/Check.pm +++ b/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)); } }