From e0951c1080f5bbbdd17e470f1ed8943be2c18028 Mon Sep 17 00:00:00 2001 From: Heuzef Date: Mon, 7 Oct 2019 10:56:00 +0200 Subject: [PATCH] add frequence var --- Check.pm | 4 ++-- readme.txt | 1 - 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/Check.pm b/Check.pm index f345404..6ba574d 100644 --- a/Check.pm +++ b/Check.pm @@ -76,8 +76,8 @@ sub action } # Color for age - - if ( $lastAge < 1.1 ) { + my $frequence = 1.1; + if ( $lastAge < $frequence ) { $lastAgeColor = "MediumSeaGreen"; } else { $lastAgeColor = "Tomato"; diff --git a/readme.txt b/readme.txt index 51de0d1..ecc2a40 100644 --- a/readme.txt +++ b/readme.txt @@ -18,4 +18,3 @@ Add link "Check" to "?action=check" - Vérification de la fréquence IncrPeriod et FullPeriod pour l'age quotidienne et hebdomadaire. - Harmonisation du code Size Consistency avec des variables cohérentes scalaires. -- Diminuer la redondance des conditions.