diff --git a/src/BenchmarkDotNet/Environments/HostEnvironmentInfo.cs b/src/BenchmarkDotNet/Environments/HostEnvironmentInfo.cs index 22d2c4e5b4..0abb7b8e49 100644 --- a/src/BenchmarkDotNet/Environments/HostEnvironmentInfo.cs +++ b/src/BenchmarkDotNet/Environments/HostEnvironmentInfo.cs @@ -78,7 +78,7 @@ protected HostEnvironmentInfo() AntivirusProducts = new Lazy>(RuntimeInformation.GetAntivirusProducts); VirtualMachineHypervisor = new Lazy(RuntimeInformation.GetVirtualMachineHypervisor); Os = new Lazy(OsDetector.GetOs); - Cpu = new Lazy(CpuDetector.CrossPlatform.Detect); + Cpu = new Lazy(() => CpuDetector.CrossPlatform.Detect() ?? CpuInfo.Unknown); } public new static HostEnvironmentInfo GetCurrent() => current ??= new HostEnvironmentInfo();