fix: unresponsive instead of stuck if both
This commit is contained in:
parent
9595afb63a
commit
c7a6a290c9
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue