Not a string

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

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

Loading…
Cancel
Save