diff --git a/Wabbajack.Common/Metrics.cs b/Wabbajack.Common/Metrics.cs index 73a360bd..a276e362 100644 --- a/Wabbajack.Common/Metrics.cs +++ b/Wabbajack.Common/Metrics.cs @@ -15,12 +15,12 @@ namespace Wabbajack.Common /// /// /// - public static async Task Send(string action, params string[] values) + public static async Task Send(string action, string value) { var client = new HttpClient(); try { - await client.GetAsync($"http://build.wabbajack.org/metrics/{action}/{string.Join("\t", values)}"); + await client.GetAsync($"http://build.wabbajack.org/metrics/{action}/{value}"); } catch (Exception) { } } diff --git a/Wabbajack.Lib/MO2Installer.cs b/Wabbajack.Lib/MO2Installer.cs index ddaaf232..0bad384e 100644 --- a/Wabbajack.Lib/MO2Installer.cs +++ b/Wabbajack.Lib/MO2Installer.cs @@ -39,7 +39,7 @@ namespace Wabbajack.Lib protected override async Task _Begin(CancellationToken cancel) { if (cancel.IsCancellationRequested) return false; - var metric = Metrics.Send("begin_install", ModList.Name, ModList.WabbajackVersion); + var metric = Metrics.Send("begin_install", ModList.Name); ConfigureProcessor(18, await RecommendQueueSize()); var game = ModList.GameType.MetaData(); @@ -136,7 +136,7 @@ namespace Wabbajack.Lib SetScreenSizeInPrefs(); UpdateTracker.NextStep("Installation complete! You may exit the program."); - var metric2 = Metrics.Send("finish_install", ModList.Name, ModList.WabbajackVersion); + var metric2 = Metrics.Send("finish_install", ModList.Name); return true; } diff --git a/Wabbajack.Lib/VortexInstaller.cs b/Wabbajack.Lib/VortexInstaller.cs index 79324a6b..f0255dff 100644 --- a/Wabbajack.Lib/VortexInstaller.cs +++ b/Wabbajack.Lib/VortexInstaller.cs @@ -37,7 +37,7 @@ namespace Wabbajack.Lib protected override async Task _Begin(CancellationToken cancel) { if (cancel.IsCancellationRequested) return false; - var metric = Metrics.Send("begin_install", ModList.Name, ModList.WabbajackVersion); + var metric = Metrics.Send("begin_install", ModList.Name); MessageBox.Show( "Vortex Support is still experimental and may produce unexpected results. " + "If anything fails go to the special vortex support channels on the discord. @erri120#2285 " + @@ -87,7 +87,7 @@ namespace Wabbajack.Lib await InstallSteamWorkshopItems(); //InstallIncludedDownloadMetas(); - var metric2 = Metrics.Send("finish_install", ModList.Name, ModList.WabbajackVersion); + var metric2 = Metrics.Send("finish_install", ModList.Name); Info("Installation complete! You may exit the program."); return true; }