Use B_PAGE_SIZE for calculating memory size in the AboutSystem app.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@37097 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Wim van der Meer
2010-06-11 10:56:39 +00:00
parent 08bed3e8aa
commit 46f84134a9
+2 -2
View File
@@ -1673,8 +1673,8 @@ static const char*
MemUsageToString(char string[], size_t size, system_info* info)
{
snprintf(string, size, B_TRANSLATE("%d MB total, %d MB used (%d%%)"),
int(info->max_pages / 256.0f + 0.5f),
int(info->used_pages / 256.0f + 0.5f),
int(info->max_pages * (B_PAGE_SIZE / 1048576.0f) + 0.5f),
int(info->used_pages * (B_PAGE_SIZE / 1048576.0f) + 0.5f),
int(100 * info->used_pages / info->max_pages));
return string;