use the NT5+ behavior of displaying the system cache size. fixes bug 856
authorThomas Bluemel <thomas@reactsoft.com>
Sat, 1 Oct 2005 14:38:10 +0000 (14:38 +0000)
committerThomas Bluemel <thomas@reactsoft.com>
Sat, 1 Oct 2005 14:38:10 +0000 (14:38 +0000)
svn path=/trunk/; revision=18190

reactos/subsys/system/taskmgr/perfdata.c

index ab730aa..6555c62 100644 (file)
@@ -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)