From 36434edb471f8df770b3e324749b1c526c2927e7 Mon Sep 17 00:00:00 2001 From: sunshineinabox Date: Wed, 26 Jul 2023 21:04:45 -0700 Subject: [PATCH] Get once no need --- src/Ryujinx.Common/SystemInfo/WindowsSystemInfo.cs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/Ryujinx.Common/SystemInfo/WindowsSystemInfo.cs b/src/Ryujinx.Common/SystemInfo/WindowsSystemInfo.cs index 4bb1d0936..e85dc93f0 100644 --- a/src/Ryujinx.Common/SystemInfo/WindowsSystemInfo.cs +++ b/src/Ryujinx.Common/SystemInfo/WindowsSystemInfo.cs @@ -8,16 +8,16 @@ using System.Linq; namespace Ryujinx.Common.SystemInfo { [SupportedOSPlatform("windows")] - partial class WindowsSystemInfo : SystemInfo + class WindowsSystemInfo : SystemInfo { internal WindowsSystemInfo() { try { - using (WmiConnection connection = new WmiConnection()) + using (WmiConnection connection = new()) { - (string cpuName, int physicalCores) = GetCpuStatsLight(connection); - CpuName = $"{cpuName} ; {physicalCores} physical ; {LogicalCoreCount} logical"; + (string cpuName, PhysicalCores) = GetCpuStatsLight(connection); + CpuName = $"{cpuName} ; {PhysicalCores} physical ; {LogicalCoreCount} logical"; (RamTotal, RamAvailable) = GetMemoryStatsWmiLight(connection); } }