When calculating the number of used pages for a get_system_info() request,

also include inactive pages. Fixes #7714.



git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@43168 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Rene Gollent 2011-11-03 20:51:17 +00:00
parent dd58fc68f4
commit 58ce0a2c12
1 changed files with 2 additions and 1 deletions

View File

@ -3651,7 +3651,8 @@ vm_page_get_stats(system_info *info)
page_num_t blockCachePages = block_cache_used_memory() / B_PAGE_SIZE;
info->max_pages = sNumPages - sNonExistingPages;
info->used_pages = gMappedPagesCount - blockCachePages;
info->used_pages = gMappedPagesCount + sInactivePageQueue.Count()
- blockCachePages;
info->cached_pages = info->max_pages >= free + info->used_pages
? info->max_pages - free - info->used_pages : 0;
info->page_faults = vm_num_page_faults();