From 3581de86cc58f63a46ac21902813b683164e14ec Mon Sep 17 00:00:00 2001 From: Heuzef Date: Wed, 9 Oct 2019 17:20:10 +0200 Subject: [PATCH] Include condition for frequence --- Check.pm | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/Check.pm b/Check.pm index 23dc26d..3da5c9b 100644 --- a/Check.pm +++ b/Check.pm @@ -51,7 +51,10 @@ sub action next if ( !$Privileged && !CheckPermission($host) ); # Get frequence for this host - $frequence = $Conf{FullPeriod}; + if ( $Conf{IncrPeriod} < $Conf{FullPeriod} ) { + $frequence = $Conf{IncrPeriod}; + } else { + $frequence = $Conf{FullPeriod}; # Age for ( my $i = 0 ; $i < @Backups ; $i++ ) { @@ -212,7 +215,7 @@ my $browseFile = "?action=browse&host=$host"; # Show summary $str = <${HostLink($host)} - $lastAge + $lastAge (Freq: $frequence) $lastXferErrors $sizeConsistency Explore files ... @@ -254,7 +257,7 @@ EOF - +
Host Last backup in days (frequence is \$frequence days) Last backup in days Errors Size Consistency Browse