use the NT5+ behavior of displaying the system cache size. fixes bug 856

svn path=/trunk/; revision=18190
This commit is contained in:
Thomas Bluemel 2005-10-01 14:38:10 +00:00
parent e89ca27d52
commit c1388efea5

View 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)