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 16, 2023
1 parent 4d93c6f commit c49749a
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions Hardware.Info/Linux/HardwareInfoRetrieval.cs
Original file line number Diff line number Diff line change
Expand Up @@ -172,11 +172,6 @@ public List<CPU> GetCpuList(bool includePercentProcessorTime = true)

GetCpuCacheSize(cpu);

if (includePercentProcessorTime)
{
GetCpuUsage(cpu);
}

cpuList.Add(cpu);
continue;
}
Expand Down Expand Up @@ -229,6 +224,12 @@ public List<CPU> GetCpuList(bool includePercentProcessorTime = true)
{
if (uint.TryParse(match.Groups[1].Value, out uint numberOfLogicalProcessors))
cpu.NumberOfLogicalProcessors = numberOfLogicalProcessors;

if (includePercentProcessorTime)
{
GetCpuUsage(cpu);
}

continue;
}
}
Expand Down

0 comments on commit c49749a

Please sign in to comment.