From c7a6a290c9f2ba7c32dbac077e5813c7f896845d Mon Sep 17 00:00:00 2001 From: Taranto Date: Thu, 5 Nov 2020 16:56:12 +0000 Subject: [PATCH] fix: unresponsive instead of stuck if both --- lib/machine-loader.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/machine-loader.js b/lib/machine-loader.js index 68c06734..24c5f5ab 100644 --- a/lib/machine-loader.js +++ b/lib/machine-loader.js @@ -46,9 +46,9 @@ function getMachineNames (config) { )) .then(([machines, pings, events, config]) => { const getStatus = (ping, stuck) => { - if (stuck && stuck.age) return stuckStatus - if (ping && ping.age) return unresponsiveStatus + + if (stuck && stuck.age) return stuckStatus return fullyFunctionalStatus }