From 4da9da7226b93139a28a7ffed432f1d1e2f454df Mon Sep 17 00:00:00 2001 From: laolarou Date: Mon, 13 Nov 2023 22:37:00 -0800 Subject: [PATCH] Update SystemInfoHelper.Windows.cs --- .../Platforms/Windows/SystemInfoHelper.Windows.cs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ProjBobcat/ProjBobcat/Platforms/Windows/SystemInfoHelper.Windows.cs b/ProjBobcat/ProjBobcat/Platforms/Windows/SystemInfoHelper.Windows.cs index e7a549e..1aba8dd 100644 --- a/ProjBobcat/ProjBobcat/Platforms/Windows/SystemInfoHelper.Windows.cs +++ b/ProjBobcat/ProjBobcat/Platforms/Windows/SystemInfoHelper.Windows.cs @@ -15,9 +15,9 @@ namespace ProjBobcat.Platforms.Windows; [SupportedOSPlatform(nameof(OSPlatform.Windows))] public static class SystemInfoHelper { - static readonly PerformanceCounter FreeMemCounter = new("Memory", "Available MBytes"); - static readonly PerformanceCounter MemUsagePercentageCounter = new("Memory", "% Committed Bytes In Use"); - static readonly PerformanceCounter CpuCounter = new("Processor Information", "% Processor Utility", "_Total"); + static readonly PerformanceCounter FreeMemCounter = new("Memory", "Available MBytes", true); + static readonly PerformanceCounter MemUsagePercentageCounter = new("Memory", "% Committed Bytes In Use", true); + static readonly PerformanceCounter CpuCounter = new("Processor Information", "% Processor Utility", "_Total", true); static SystemInfoHelper() {