Include condition for frequence

master
Heuzef 5 years ago
parent 9c1925dee8
commit 3581de86cc
  1. 9
      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 = <<EOF;
<tr$reasonHilite><td class="border">${HostLink($host)}</td>
<td align="center" class="border" style="color:$lastAgeColor;">$lastAge</td>
<td align="center" class="border" style="color:$lastAgeColor;">$lastAge <em>(Freq: $frequence)</em></td>
<td align="center" class="border" style="color:$lastXferErrorsColor;">$lastXferErrors</td>
<td align="center" class="border" style="color:$sizeConsistencyColor;">$sizeConsistency</td>
<td align="center" class="border"><a href="$browseFile" target="_blank">Explore files ...</a></td>
@ -254,7 +257,7 @@ EOF
<table class="sortable" id="host_summary_backups" border cellpadding="3" cellspacing="1">
<tr class="tableheader"><td> Host </td>
<td> Last backup in days (frequence is \$frequence days)</td>
<td> Last backup in days </td>
<td> Errors </td>
<td> Size Consistency </td>
<td> Browse </td>

Loading…
Cancel
Save