Not a string

master
Heuzef 5 years ago
parent a2ad9a659f
commit 4216b16e30
  1. 6
      Check.pm

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

Loading…
Cancel
Save