mirror of https://github.com/louislam/uptime-kuma
Avoid the multiple queries for Gamedig monitor
parent
3eab6e8238
commit
9cc3bd0de4
|
@ -495,7 +495,8 @@ class Monitor extends BeanModel {
|
||||||
const state = await Gamedig.query({
|
const state = await Gamedig.query({
|
||||||
type: this.game,
|
type: this.game,
|
||||||
host: this.hostname,
|
host: this.hostname,
|
||||||
port: this.port
|
port: this.port,
|
||||||
|
givenPortOnly: true,
|
||||||
});
|
});
|
||||||
|
|
||||||
bean.msg = state.name;
|
bean.msg = state.name;
|
||||||
|
|
Loading…
Reference in New Issue