vm_page_get_stats(): Forgot to added sIgnoredPages to system_info::max_pages
in r37117 as well, which was really the main point of introducing it. Improves #6124 (reported memory lower than installed). git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37127 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -3574,7 +3574,7 @@ vm_page_get_stats(system_info *info)
|
||||
// can't really be freed in a low memory situation.
|
||||
page_num_t blockCachePages = block_cache_used_memory() / B_PAGE_SIZE;
|
||||
|
||||
info->max_pages = sNumPages - sNonExistingPages;
|
||||
info->max_pages = sNumPages - sNonExistingPages + sIgnoredPages;
|
||||
info->used_pages = gMappedPagesCount - blockCachePages + sIgnoredPages;
|
||||
info->cached_pages = info->max_pages >= free + info->used_pages
|
||||
? info->max_pages - free - info->used_pages : 0;
|
||||
|
||||
Reference in New Issue
Block a user