The number of concurrent during multi-test

This commit is contained in:
2dust
2025-02-15 20:27:20 +08:00
parent c2e1cf7bdb
commit 50959951ae
16 changed files with 86 additions and 13 deletions

View File

@@ -125,6 +125,10 @@ namespace ServiceLib.Handler
{
config.SpeedTestItem.SpeedPingTestUrl = Global.SpeedPingTestUrl;
}
if (config.SpeedTestItem.MixedConcurrencyCount < 1)
{
config.SpeedTestItem.MixedConcurrencyCount = 5;
}
config.Mux4RayItem ??= new()
{

View File

@@ -141,7 +141,7 @@ namespace ServiceLib.Handler
var coreType = AppHandler.Instance.GetCoreType(node, node.ConfigType);
var coreInfo = CoreInfoHandler.Instance.GetCoreInfo(coreType);
var proc = await CoreHandler.Instance.RunProcess(coreInfo, fileName, true, false);
var proc = await RunProcess(coreInfo, fileName, true, false);
if (proc is null)
{
return -1;