Author: amunger
Date: Sat Dec 27 05:44:21 2008
New Revision: 38381
URL:
http://svn.reactos.org/svn/reactos?rev=38381&view=rev
Log:
Return mostly correct information so taskmgr doesn't just report zero for "System
Cache".
Modified:
trunk/reactos/ntoskrnl/ex/sysinfo.c
Modified: trunk/reactos/ntoskrnl/ex/sysinfo.c
URL:
http://svn.reactos.org/svn/reactos/trunk/reactos/ntoskrnl/ex/sysinfo.c?rev=…
==============================================================================
--- trunk/reactos/ntoskrnl/ex/sysinfo.c [iso-8859-1] (original)
+++ trunk/reactos/ntoskrnl/ex/sysinfo.c [iso-8859-1] Sat Dec 27 05:44:21 2008
@@ -1157,7 +1157,10 @@
MiMemoryConsumers[MC_CACHE].PagesUsed * PAGE_SIZE;
Sci->PeakSize =
MiMemoryConsumers[MC_CACHE].PagesUsed * PAGE_SIZE; /* FIXME */
-
+ /* Taskmgr multiplies this one by page size right away */
+ Sci->CurrentSizeIncludingTransitionInPages =
+ MiMemoryConsumers[MC_CACHE].PagesUsed; /* FIXME: Should include */
+ /* stanby and free pages, which I don't think we track right now */
Sci->PageFaultCount = 0; /* FIXME */
Sci->MinimumWorkingSet = 0; /* FIXME */
Sci->MaximumWorkingSet = 0; /* FIXME */