Skip to content

Commit

Permalink
Version 100.0.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
Urban committed Sep 17, 2023
1 parent 77fd4ec commit 708495f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Hardware.Info/Linux/HardwareInfoRetrieval.cs
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ public List<CPU> GetCpuList(bool includePercentProcessorTime = true)
Regex vendorIdRegex = new Regex(@"^vendor_id\s+:\s+(.+)");
Regex modelNameRegex = new Regex(@"^model name\s+:\s+(.+)");
Regex cpuSpeedRegex = new Regex(@"^cpu MHz\s+:\s+(.+)");
Regex cacheSizeRegex = new Regex(@"^cache size\s+:\s+(.+)\s+KB");
Regex cacheSizeRegex = new Regex(@"^cache size\s+:\s+(.+)\s+KB"); // L2 cache size in KB
Regex physicalIdRegex = new Regex(@"^physical id\s+:\s+(\d+)"); // physical CPU ID (a PC with two quad core CPUs, 4 cores will have one value, and the other 4 will have another value)
Regex logicalCoresRegex = new Regex(@"^siblings\s+:\s+(.+)"); // number of logical cores (no hyperthreading = same as physical, with hyperthreading = 2 * physical)
Regex coreIdRegex = new Regex(@"^core id\s+:\s+(.+)"); // core ID (from 0 to 3 in a PC with two quad core CPUs - for the first CPU, and then the same for second CPU)
Expand Down Expand Up @@ -291,7 +291,7 @@ public List<CPU> GetCpuList(bool includePercentProcessorTime = true)
cpu.Manufacturer = first.VendorId;
cpu.Name = first.ModelName;
cpu.CurrentClockSpeed = first.CpuMhz;
cpu.L3CacheSize = first.CacheSize;
//cpu.L2CacheSize = first.CacheSize;
cpu.NumberOfLogicalProcessors = first.Siblings;
cpu.NumberOfCores = first.CpuCores;

Expand Down

0 comments on commit 708495f

Please sign in to comment.