now rounds the total memory size

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13332 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Jérôme Duval 2005-06-28 21:52:27 +00:00
parent a79f112e9b
commit deeb4c6cd9
1 changed files with 1 additions and 1 deletions

View File

@ -203,7 +203,7 @@ AboutView::AboutView(const BRect &r)
r.OffsetBy(0, labelHeight);
r.bottom = r.top + textHeight;
sprintf(string, "%ld MB total", systemInfo.max_pages / 256);
sprintf(string, "%d MB total", int(systemInfo.max_pages / 256.0f + 0.5f));
stringView = new BStringView(r, "ramtext", string);
fInfoView->AddChild(stringView);