Remove SizeTot

master
Heuzef 5 years ago
parent 0da32cc045
commit d05196b767
  1. 9
      Check.pm

@ -30,8 +30,7 @@ use Data::Dumper;
sub action sub action
{ {
# Init # Init
my($fullTot, $fullSizeTot, $incrTot, $incrSizeTot, $str, my($str, $strNone, $strGood, $hostCntGood, $hostCntNone, $header);
$strNone, $strGood, $hostCntGood, $hostCntNone, $header);
$hostCntGood = $hostCntNone = 0; $hostCntGood = $hostCntNone = 0;
GetStatusInfo("hosts info"); GetStatusInfo("hosts info");
@ -61,13 +60,11 @@ sub action
$fullSize = $Backups[$i]{size} / (1024 * 1024); $fullSize = $Backups[$i]{size} / (1024 * 1024);
$fullDur = $Backups[$i]{endTime} - $Backups[$i]{startTime}; $fullDur = $Backups[$i]{endTime} - $Backups[$i]{startTime};
} }
$fullSizeTot += $Backups[$i]{size} / (1024 * 1024);
} elsif ( $Backups[$i]{type} eq "incr" ) { } elsif ( $Backups[$i]{type} eq "incr" ) {
$incrCnt++; $incrCnt++;
if ( $incrAge < 0 || $Backups[$i]{startTime} > $incrAge ) { if ( $incrAge < 0 || $Backups[$i]{startTime} > $incrAge ) {
$incrAge = $Backups[$i]{startTime}; $incrAge = $Backups[$i]{startTime};
} }
$incrSizeTot += $Backups[$i]{size} / (1024 * 1024);
} }
} }
if ( $fullAge > $incrAge && $fullAge >= 0 ) { if ( $fullAge > $incrAge && $fullAge >= 0 ) {
@ -101,8 +98,6 @@ sub action
} else { } else {
$incrAge = sprintf("%.1f", (time - $incrAge) / (24 * 3600)); $incrAge = sprintf("%.1f", (time - $incrAge) / (24 * 3600));
} }
$fullTot += $fullCnt;
$incrTot += $incrCnt;
$fullSize = sprintf("%.2f", $fullSize / 1024); $fullSize = sprintf("%.2f", $fullSize / 1024);
$incrAge = "&nbsp;" if ( $incrAge eq "" ); $incrAge = "&nbsp;" if ( $incrAge eq "" );
# Color for errors # Color for errors
@ -245,8 +240,6 @@ EOF
# End loop # End loop
# Time set # Time set
$fullSizeTot = sprintf("%.2f", $fullSizeTot / 1024);
$incrSizeTot = sprintf("%.2f", $incrSizeTot / 1024);
my $now = timeStamp2(time); my $now = timeStamp2(time);
my $DUlastTime = timeStamp2($Info{DUlastValueTime}); my $DUlastTime = timeStamp2($Info{DUlastValueTime});
my $DUmaxTime = timeStamp2($Info{DUDailyMaxTime}); my $DUmaxTime = timeStamp2($Info{DUDailyMaxTime});

Loading…
Cancel
Save