From eaacdb344619e18394fd06f41c85f442997a33df Mon Sep 17 00:00:00 2001 From: Marcel Baumgartner Date: Tue, 16 Apr 2024 17:18:40 +0200 Subject: [PATCH] Fixed memory calculation of moonlight itself --- Moonlight/Core/Helpers/HostSystemHelper.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Moonlight/Core/Helpers/HostSystemHelper.cs b/Moonlight/Core/Helpers/HostSystemHelper.cs index b0df6e97..0e33ffc9 100644 --- a/Moonlight/Core/Helpers/HostSystemHelper.cs +++ b/Moonlight/Core/Helpers/HostSystemHelper.cs @@ -58,7 +58,7 @@ public static class HostSystemHelper public static Task GetMemoryUsage() { var process = Process.GetCurrentProcess(); - var bytes = process.WorkingSet64; + var bytes = process.PrivateMemorySize64; return Task.FromResult(bytes); }