feat: Modification du temps à ne pas dépacer à 20 minutes au lieu de 6
continuous-integration/drone/push Build is passing
Details
continuous-integration/drone/push Build is passing
Details
This commit is contained in:
parent
dde8201264
commit
aba90c7396
2
index.js
2
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);
|
||||
|
|
Loading…
Reference in New Issue