Skip to content

Commit

Permalink
Merge pull request #163 from f4bii/main
Browse files Browse the repository at this point in the history
Fix #147 Incorrect number of labels
  • Loading branch information
weihao authored Jul 13, 2024
2 parents 2fddc6f + 5acbc7b commit 3375c77
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ public void doCollect() {

ProxyServer proxy = ((PrometheusBungeeCordExporter) getPlugin()).getProxy();
proxy.getServers().forEach((key, value) -> {
this.getGauge().labels(key, "").set(0);
this.getGauge().labels(key, "", "").set(0);
value.getPlayers().forEach(proxiedPlayer ->
this.getGauge().labels(key, proxiedPlayer.getName(), Boolean.toString(proxy.getConfig().isOnlineMode())).set(1));
});
Expand Down

0 comments on commit 3375c77

Please # to comment.