diff --git a/Hardware.Info/Linux/HardwareInfoRetrieval.cs b/Hardware.Info/Linux/HardwareInfoRetrieval.cs index 737039f..40f48e0 100644 --- a/Hardware.Info/Linux/HardwareInfoRetrieval.cs +++ b/Hardware.Info/Linux/HardwareInfoRetrieval.cs @@ -172,11 +172,6 @@ public List GetCpuList(bool includePercentProcessorTime = true) GetCpuCacheSize(cpu); - if (includePercentProcessorTime) - { - GetCpuUsage(cpu); - } - cpuList.Add(cpu); continue; } @@ -229,6 +224,12 @@ public List GetCpuList(bool includePercentProcessorTime = true) { if (uint.TryParse(match.Groups[1].Value, out uint numberOfLogicalProcessors)) cpu.NumberOfLogicalProcessors = numberOfLogicalProcessors; + + if (includePercentProcessorTime) + { + GetCpuUsage(cpu); + } + continue; } }