We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 7da69ad commit 01b34baCopy full SHA for 01b34ba
src/BenchmarkDotNet/Environments/HostEnvironmentInfo.cs
@@ -78,7 +78,7 @@ protected HostEnvironmentInfo()
78
AntivirusProducts = new Lazy<ICollection<Antivirus>>(RuntimeInformation.GetAntivirusProducts);
79
VirtualMachineHypervisor = new Lazy<VirtualMachineHypervisor>(RuntimeInformation.GetVirtualMachineHypervisor);
80
Os = new Lazy<OsInfo>(OsDetector.GetOs);
81
- Cpu = new Lazy<CpuInfo>(CpuDetector.CrossPlatform.Detect);
+ Cpu = new Lazy<CpuInfo>(() => CpuDetector.CrossPlatform.Detect() ?? CpuInfo.Unknown);
82
}
83
84
public new static HostEnvironmentInfo GetCurrent() => current ??= new HostEnvironmentInfo();
0 commit comments