From aba90c73963606c2201fcecaf465f70778898def Mon Sep 17 00:00:00 2001 From: Simon C Date: Mon, 23 Sep 2024 15:42:10 +0200 Subject: [PATCH] =?UTF-8?q?feat:=20Modification=20du=20temps=20=C3=A0=20ne?= =?UTF-8?q?=20pas=20d=C3=A9pacer=20=C3=A0=2020=20minutes=20au=20lieu=20de?= =?UTF-8?q?=206?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.js b/index.js index b4eb062..74c28e6 100644 --- a/index.js +++ b/index.js @@ -84,7 +84,7 @@ console.log(`[${lastUpdateTime}] La salle Greyzollon Duluth produissait ${curren const secondDifference = Math.ceil(Math.abs(now.getTime() - new Date(lastUpdateTime).getTime()) / 1000); const formatedDifference = formatTime(secondDifference) -if (secondDifference > (6 * 60)) { +if (secondDifference > (20 * 60)) { const msg = `❌ L'installation n'a pas répondu depuis '${lastUpdateTime}' ça fait ${formatedDifference} (${secondDifference}) !` console.log(msg); await sendAlert(msg);