From d5d0013e5f5362f4a638d4a7587d785fe8bdd748 Mon Sep 17 00:00:00 2001 From: Heuzef Date: Fri, 20 Sep 2019 10:53:57 +0200 Subject: [PATCH] Move lastagecolor function --- Check.pm | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Check.pm b/Check.pm index 7155657..59d46f5 100644 --- a/Check.pm +++ b/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 = "";