From f7a1f2a651f4c60f75c5de0f7ca4ef2970e0e6b3 Mon Sep 17 00:00:00 2001 From: sunshineinabox Date: Mon, 10 Jul 2023 21:10:42 -0700 Subject: [PATCH] This assignment seems unnecessary --- src/Ryujinx.Common/SystemInfo/SystemInfo.cs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/Ryujinx.Common/SystemInfo/SystemInfo.cs b/src/Ryujinx.Common/SystemInfo/SystemInfo.cs index 306b81749..44977589b 100644 --- a/src/Ryujinx.Common/SystemInfo/SystemInfo.cs +++ b/src/Ryujinx.Common/SystemInfo/SystemInfo.cs @@ -92,10 +92,9 @@ namespace Ryujinx.Common.SystemInfo { if (RuntimeInformation.IsOSPlatform(OSPlatform.Windows)) { - coreCount = 0; foreach (var item in new System.Management.ManagementObjectSearcher("Select NumberOfCores from Win32_Processor").Get()) { - coreCount += int.Parse(item["NumberOfCores"].ToString()); + coreCount = int.Parse(item["NumberOfCores"].ToString()); } } else if (RuntimeInformation.IsOSPlatform(OSPlatform.Linux))