From 7ee982197c44aa5cefc7e4aa5da78bb38f25cc80 Mon Sep 17 00:00:00 2001 From: Heuzef Date: Wed, 25 Sep 2019 11:02:44 +0200 Subject: [PATCH] fix lastage var --- backuppc_check.pl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/backuppc_check.pl b/backuppc_check.pl index b1d618f..b4e0e89 100644 --- a/backuppc_check.pl +++ b/backuppc_check.pl @@ -81,7 +81,7 @@ if ( $host ) { $json->{enabled} = ( $conf->{BackupsDisable} > 0 ) ? 0 : 1; $json->{total_size} = $sizes->sum + $json->{full_size} - 2 * $new_size_of_last_full; $json->{age} = time - $bpc_info[$i]->{startTime}; - $lastAge = sprintf("%.1f", (time - $json->{age}) / (24 * 3600)); + $lastAge = sprintf("%.1f", ($json->{age}) / 84600); $json->{max_errors} = $conf->{MaxXferError} || 0; } } elsif ( $entity ) {