From c1388efea5f9dae9178f080952c8668c327a0b3b Mon Sep 17 00:00:00 2001 From: Thomas Bluemel Date: Sat, 1 Oct 2005 14:38:10 +0000 Subject: [PATCH] use the NT5+ behavior of displaying the system cache size. fixes bug 856 svn path=/trunk/; revision=18190 --- reactos/subsys/system/taskmgr/perfdata.c | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/reactos/subsys/system/taskmgr/perfdata.c b/reactos/subsys/system/taskmgr/perfdata.c index ab730aafe6a..6555c624665 100644 --- a/reactos/subsys/system/taskmgr/perfdata.c +++ b/reactos/subsys/system/taskmgr/perfdata.c @@ -806,15 +806,12 @@ ULONG PerfDataGetPhysicalMemorySystemCacheK(void) EnterCriticalSection(&PerfDataCriticalSection); - SystemCache = SystemCacheInfo.CurrentSize; PageSize = SystemBasicInfo.PageSize; + SystemCache = SystemCacheInfo.CurrentSizeIncludingTransitionInPages * PageSize; LeaveCriticalSection(&PerfDataCriticalSection); - /* SystemCache = SystemCache * (PageSize / 1024); */ - SystemCache = SystemCache / 1024; - - return SystemCache; + return SystemCache / 1024; } ULONG PerfDataGetSystemHandleCount(void)