mirror of
https://github.com/ApfelTeeSaft/reactos.git
synced 2026-09-02 04:13:34 +00:00
use the NT5+ behavior of displaying the system cache size. fixes bug 856
svn path=/trunk/; revision=18190
This commit is contained in:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user