Use the old calculations for used_pages for the time being until the issue with sAvailableMemory is resolved.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24615 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Rene Gollent 2008-03-28 04:57:49 +00:00
parent 82d444a25e
commit 153cc3c0f4

View File

@ -79,9 +79,13 @@ _get_system_info(system_info *info, size_t size)
// ToDo: Add page_faults
info->max_pages = vm_page_num_pages();
info->used_pages = info->max_pages - vm_page_num_free_pages();
/* TODO: return to using these once sAvailableMemory yields correct values.
info->used_pages = vm_page_num_pages() - vm_page_num_available_pages();
info->cached_pages = vm_page_num_pages() - vm_page_num_free_pages()
- info->used_pages;
*/
info->used_threads = thread_used_threads();
info->max_threads = thread_max_threads();
info->used_teams = team_used_teams();