mirror of
https://github.com/wabbajack-tools/wabbajack.git
synced 2024-08-30 18:42:17 +00:00
Fix metrics
This commit is contained in:
parent
64a06d88e6
commit
f4df8509f0
@ -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) { }
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user