mirror of
https://github.com/reactos/reactos.git
synced 2024-12-27 09:34:43 +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:
parent
e89ca27d52
commit
c1388efea5
1 changed files with 2 additions and 5 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue