Fix metrics

This commit is contained in:
halgari 2019-12-14 22:04:02 -07:00
parent 64a06d88e6
commit f4df8509f0
3 changed files with 6 additions and 6 deletions

View File

@ -15,12 +15,12 @@ namespace Wabbajack.Common
/// </summary>
/// <param name="action"></param>
/// <param name="value"></param>
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) { }
}

View File

@ -39,7 +39,7 @@ namespace Wabbajack.Lib
protected override async Task<bool> _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;
}

View File

@ -37,7 +37,7 @@ namespace Wabbajack.Lib
protected override async Task<bool> _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;
}