Skip to content

Commit

Permalink
Manage system load during specs gathering
Browse files Browse the repository at this point in the history
  • Loading branch information
OudomMunint committed Jul 6, 2024
1 parent f2d4f61 commit 5dc8ac1
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions Program.cs
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ static void DisplayWindowsInfo()
ConsoleSpinner.Stop();
}

static void DisplayCpuInfo()
static async void DisplayCpuInfo()
{
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
{
Expand Down Expand Up @@ -156,11 +156,12 @@ static void DisplayCpuInfo()
{
Console.WriteLine("An error occurred while retrieving CPU information: " + ex.Message);
}
await Task.Delay(500);
}
}
}

static void DisplayRamInfo()
static async void DisplayRamInfo()
{
if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows))
{
Expand Down Expand Up @@ -213,10 +214,11 @@ static void DisplayRamInfo()
{
Console.WriteLine("An error occurred while retrieving memory information: " + ex.Message);
}
await Task.Delay(500);
}
}

static void DisplayGpuInfo()
static async void DisplayGpuInfo()
{
try
{
Expand Down Expand Up @@ -375,6 +377,7 @@ static void DisplayGpuInfo()
{
Console.WriteLine("An error occurred while retrieving GPU information: " + ex.Message);
}
await Task.Delay(500);
}

static void RunBenchmark()
Expand Down

0 comments on commit 5dc8ac1

Please sign in to comment.