Fixes #2319
This commit is contained in:
Родитель
d49417314f
Коммит
3437889f5f
|
@ -72,6 +72,14 @@ namespace BenchmarkDotNet.Running
|
|||
isInitialized = true;
|
||||
}
|
||||
|
||||
Guid ultimatePerformanceGuid = PowerPlansDict[PowerPlan.UltimatePerformance];
|
||||
Guid highPerformanceGuid = PowerPlansDict[PowerPlan.HighPerformance];
|
||||
if (userCurrentPowerPlan == ultimatePerformanceGuid && guid == highPerformanceGuid)
|
||||
{
|
||||
logger.WriteLineInfo($"Current power plan is already Ultimate Performance. Not changing to High Performance.");
|
||||
return;
|
||||
}
|
||||
|
||||
if (PowerManagementHelper.Set(guid))
|
||||
{
|
||||
powerPlanChanged = true;
|
||||
|
@ -87,4 +95,4 @@ namespace BenchmarkDotNet.Running
|
|||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
Загрузка…
Ссылка в новой задаче