fix: unresponsive instead of stuck if both

This commit is contained in:
Taranto 2020-11-05 16:56:12 +00:00 committed by Josh Harvey
parent 9595afb63a
commit c7a6a290c9

View file

@ -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
}