From deeb4c6cd91445947d476310603e51c7e63650ff Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?J=C3=A9r=C3=B4me=20Duval?= Date: Tue, 28 Jun 2005 21:52:27 +0000 Subject: [PATCH] now rounds the total memory size git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@13332 a95241bf-73f2-0310-859d-f6bbb57e9c96 --- src/apps/abouthaiku/AboutHaiku.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/apps/abouthaiku/AboutHaiku.cpp b/src/apps/abouthaiku/AboutHaiku.cpp index e41eec5422..210505deeb 100644 --- a/src/apps/abouthaiku/AboutHaiku.cpp +++ b/src/apps/abouthaiku/AboutHaiku.cpp @@ -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);