Skip to content

Commit

Permalink
Fix cpu/gpu counter
Browse files Browse the repository at this point in the history
  • Loading branch information
theChaosCoder committed Jul 25, 2020
1 parent c0e2dd0 commit cc7fe02
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions VSRepoGUI/MainWindow.xaml.cs
Original file line number Diff line number Diff line change
Expand Up @@ -661,10 +661,10 @@ private async void TabablzControl_SelectionChanged(object sender, SelectionChang
tb.Inlines.Add("\n64Bit OS: " + (SystemInfo.Is64Bit ? "Yes" : "No"));
if(SystemInfo.HasMultipleGpus)
{
foreach(Gpu gpu in SystemInfo.Gpus)
int i = 0;
foreach (Gpu gpu in SystemInfo.Gpus)
{
int i = 0;
tb.Inlines.Add("\nGPU"+ (++i) +": " + gpu.Description);
tb.Inlines.Add("\nGPU"+ (i++) +": " + gpu.Description);
}

} else
Expand All @@ -673,10 +673,10 @@ private async void TabablzControl_SelectionChanged(object sender, SelectionChang
}
if (SystemInfo.HasMultipleCpus)
{
int i = 0;
foreach (Cpu cpu in SystemInfo.Cpus)
{
int i = 0;
tb.Inlines.Add("\nCPU" + (++i) + ": " + cpu.Name);
tb.Inlines.Add("\nCPU" + (i++) + ": " + cpu.Name);
}
tb.Inlines.Add("\nTotal CPU Cores: " + SystemInfo.TotalCpuCores);
tb.Inlines.Add("\nTotal Logical Processors: " + SystemInfo.TotalLogicalProcessors);
Expand Down

0 comments on commit cc7fe02

Please sign in to comment.