diff --git a/ArchiSteamFarm.OfficialPlugins.Monitoring/MonitoringPlugin.cs b/ArchiSteamFarm.OfficialPlugins.Monitoring/MonitoringPlugin.cs index bc1aa670f..361c622fb 100644 --- a/ArchiSteamFarm.OfficialPlugins.Monitoring/MonitoringPlugin.cs +++ b/ArchiSteamFarm.OfficialPlugins.Monitoring/MonitoringPlugin.cs @@ -139,10 +139,10 @@ internal sealed class MonitoringPlugin : OfficialPlugin, IDisposable, IOfficialG return; } - PluginMeasurements = new[] { - new Measurement(PluginsCore.ActivePlugins.Count), - new Measurement(PluginsCore.ActivePlugins.Count(static plugin => plugin is OfficialPlugin), new KeyValuePair(TagNames.PluginType, "official")), - new Measurement(PluginsCore.ActivePlugins.Count(static plugin => plugin is not OfficialPlugin), new KeyValuePair(TagNames.PluginType, "custom")) + PluginMeasurements = new HashSet>(3) { + new(PluginsCore.ActivePlugins.Count), + new(PluginsCore.ActivePlugins.Count(static plugin => plugin is OfficialPlugin), new KeyValuePair(TagNames.PluginType, "official")), + new(PluginsCore.ActivePlugins.Count(static plugin => plugin is not OfficialPlugin), new KeyValuePair(TagNames.PluginType, "custom")) }.ToFrozenSet(); Meter = new Meter(MeterName, Version.ToString());