Skip to content

Commit

Permalink
Avoid the multiple queries for Gamedig monitor
Browse files Browse the repository at this point in the history
  • Loading branch information
louislam committed Jan 24, 2023
1 parent 3eab6e8 commit 9cc3bd0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server/model/monitor.js
Original file line number Diff line number Diff line change
Expand Up @@ -495,7 +495,8 @@ class Monitor extends BeanModel {
const state = await Gamedig.query({
type: this.game,
host: this.hostname,
port: this.port
port: this.port,
givenPortOnly: true,
});

bean.msg = state.name;
Expand Down

0 comments on commit 9cc3bd0

Please sign in to comment.