}
/* Set current values */
- ProgressSetStep(CopyContext->MemoryBars[0], PerfInfo.PagedPoolPages);
- ProgressSetStep(CopyContext->MemoryBars[1], PerfInfo.NonPagedPoolPages);
+ ProgressSetStep(CopyContext->MemoryBars[0], PerfInfo.PagedPoolPages + PerfInfo.NonPagedPoolPages);
+ ProgressSetStep(CopyContext->MemoryBars[1], PerfInfo.ResidentSystemCachePage);
ProgressSetStep(CopyContext->MemoryBars[2], PerfInfo.AvailablePages);
-
- /* Check if memory dropped below 40%! */
- if (CopyContext->MemoryBars[2]->Percent <= 40)
- {
- /* Wait a while until Mm does its thing */
- LARGE_INTEGER Interval;
- Interval.QuadPart = -1 * 15 * 1000 * 100;
- NtDelayExecution(FALSE, &Interval);
- }
}
static UINT CALLBACK
13,
44,
FALSE,
- "Paged Memory");
+ "Kernel Pool");
/* Create the non paged pool progress bar */
CopyContext.MemoryBars[1] = CreateProgressBar((xScreen / 2)- (mem_bar_width / 2),
(xScreen / 2)- (mem_bar_width / 2),
44,
FALSE,
- "Nonpaged Memory");
+ "Kernel Cache");
/* Create the global memory progress bar */
CopyContext.MemoryBars[2] = CreateProgressBar(xScreen - 13 - mem_bar_width,