Move lastagecolor function

master
Heuzef 5 years ago
parent fe1ef036bb
commit d5d0013e5f
  1. 2
      Check.pm

@ -72,12 +72,12 @@ sub action
$lastAge = ""; $lastAge = "";
} else { } else {
$lastAge = sprintf("%.1f", (time - $lastAge) / (24 * 3600)); $lastAge = sprintf("%.1f", (time - $lastAge) / (24 * 3600));
}
if ( $lastAge < 1.1 ) { if ( $lastAge < 1.1 ) {
$lastAgeColor = "MediumSeaGreen"; $lastAgeColor = "MediumSeaGreen";
} else { } else {
$lastAgeColor = "Tomato"; $lastAgeColor = "Tomato";
} }
}
if ( $fullAge < 0 ) { if ( $fullAge < 0 ) {
$fullAge = ""; $fullAge = "";
$fullRate = ""; $fullRate = "";

Loading…
Cancel
Save