Add color for size consistency

master
Heuzef 5 years ago
parent 2f2fa63310
commit 5e6bc43571
  1. 4
      Check.pm

@ -211,9 +211,11 @@ my $sizeConsistency = "ANOMALOUS";
# Get result # Get result
if ( $toobig or $toosmall ) { if ( $toobig or $toosmall ) {
$sizeConsistency = "ANOMALOUS"; $sizeConsistency = "ANOMALOUS";
$sizeConsistencyColor = "Tomato";
} }
else { else {
$sizeConsistency = "Normal"; $sizeConsistency = "Normal";
$sizeConsistencyColor = "MediumSeaGreen";
} }
# Show summary # Show summary
@ -221,7 +223,7 @@ else {
<tr$reasonHilite><td class="border">${HostLink($host)}</td> <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</td>
<td align="center" class="border" style="color:$lastXferErrorsColor;">$lastXferErrors</td> <td align="center" class="border" style="color:$lastXferErrorsColor;">$lastXferErrors</td>
<td align="center" class="border">$sizeConsistency</td> <td align="center" class="border" style="color:$sizeConsistencyColor;">$sizeConsistency</td>
<td align="center" class="border"><a href="#" target="_blank">random-file.txt</a></td> <td align="center" class="border"><a href="#" target="_blank">random-file.txt</a></td>
EOF EOF

Loading…
Cancel
Save