From 583136eebaff66d3897fb125b6514f92cbce5ef7 Mon Sep 17 00:00:00 2001 From: Heuzef Date: Thu, 19 Sep 2019 14:46:40 +0200 Subject: [PATCH] add all fullsize var --- check_size_consistency.pl | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/check_size_consistency.pl b/check_size_consistency.pl index d3b9f86..ec9c4a9 100644 --- a/check_size_consistency.pl +++ b/check_size_consistency.pl @@ -30,7 +30,9 @@ for ( my $i = 0 ; $i < @backups ; $i++ ) { $fullCnt++; if ( $fullAge < 0 || $backups[$i]{startTime} > $fullAge ) { $fullAge = $backups[$i]{startTime}; - $fullSize = $backups[$i]{size}; + $fullSize0 = $backups[$i]{size}; + $fullSize1 = $backups[$i]{size}; + $fullSize2 = $backups[$i]{size}; $fullDur = $backups[$i]{endTime} - $backups[$i]{startTime}; } } @@ -57,11 +59,14 @@ else { $lastXferErrors = $backups[@backups-1]{xferErrs} if ( @backups ); $maxErrors = $conf->{MaxXferError} if (defined $conf->{MaxXferError}); -# Print results +# Print results print<<"EOF"; Usage: $0 -Full Size of last backup : $fullSize +Full Size of last backup (0) : $fullSize0 +Full Size of last -1 : $fullSize1 +Full Size of last -2 : $fullSize2 + EOF exit(0);