Move lastagecolor function

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

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

Loading…
Cancel
Save