mirror of
https://github.com/clusterio/clusterio.git
synced 2026-11-18 07:33:12 +09:00
Fix incorrect instance lookups in plugins
Fix mistaken lookups missing the instance part, or trying to get the id from the removed instance.id property.
This commit is contained in:
1 parent
1e6b807ae3
commit
6f22942cc5
3 files changed
+7
-4
No files matched your search
@@ -30,7 +30,7 @@ class InstancePlugin extends plugin.BaseInstancePlugin {
|
||||
throw new Error(`Error parsing statistics JSON: ${err.message}, content "${string}"`);
|
||||
}
|
||||
|
||||
let instanceId = this.instance.config.id;
|
||||
let instanceId = this.instance.config.get("instance.id");
|
||||
instanceGameTicksTotal.labels(String(instanceId)).set(stats.game_tick);
|
||||
instancePlayerCount.labels(String(instanceId)).set(stats.player_count);
|
||||
|
||||
|
||||
Reference in new issue
Block a user