feat: ping time internet quality measurement
This commit is contained in:
parent
4f9dc81693
commit
01412e1abe
1 changed files with 8 additions and 8 deletions
|
|
@ -58,8 +58,8 @@ function addName (pings, events, config) {
|
|||
getStatus(
|
||||
_.first(pings[machine.deviceId]),
|
||||
_.first(checkStuckScreen(events, machine.name))
|
||||
)
|
||||
]
|
||||
)
|
||||
]
|
||||
|
||||
return _.assign(machine, { cashOut, statuses })
|
||||
}
|
||||
|
|
@ -132,8 +132,8 @@ function getMachine (machineId, config) {
|
|||
}))
|
||||
|
||||
return Promise.all([queryMachine, dbm.machineEvents(), config])
|
||||
.then(([machine, events, config]) => {
|
||||
const pings = checkPings([machine])
|
||||
.then(([machine, events, config]) => {
|
||||
const pings = checkPings([machine])
|
||||
|
||||
return [machine].map(addName(pings, events, config))[0]
|
||||
})
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue