feat: Modification du temps à ne pas dépacer à 20 minutes au lieu de 6
continuous-integration/drone/push Build is passing Details

This commit is contained in:
Simon 2024-09-23 15:42:10 +02:00
parent dde8201264
commit aba90c7396
1 changed files with 1 additions and 1 deletions

View File

@ -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);