From e24877f560cfdebf7a289b1a21c86d28289f29c1 Mon Sep 17 00:00:00 2001 From: svenhoefer Date: Fri, 27 Dec 2013 22:27:16 +0100 Subject: [PATCH] - dboxinfo: show correct values in RAM section --- src/gui/dboxinfo.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/gui/dboxinfo.cpp b/src/gui/dboxinfo.cpp index c9fbd1c3b..63621288c 100644 --- a/src/gui/dboxinfo.cpp +++ b/src/gui/dboxinfo.cpp @@ -437,15 +437,15 @@ void CDBoxInfoWidget::paint() break; case 2: mpOffset = nameOffset+ (sizeOffset+10)*1+10; - bytes2string(1024 * m[k][DBINFO_FREE], ubuf, buf_size); + bytes2string(1024 * m[k][DBINFO_USED], ubuf, buf_size); break; case 3: mpOffset = nameOffset+ (sizeOffset+10)*2+10; - bytes2string(1024 * m[k][DBINFO_USED], ubuf, buf_size); + bytes2string(1024 * m[k][DBINFO_FREE], ubuf, buf_size); break; case 4: mpOffset = nameOffset+ (sizeOffset+10)*3+10; - snprintf(ubuf, buf_size, "%4d%%", m[k][DBINFO_TOTAL] ? (m[k][DBINFO_FREE] * 100) / m[k][DBINFO_TOTAL] : 0); + snprintf(ubuf, buf_size, "%4d%%", m[k][DBINFO_TOTAL] ? (m[k][DBINFO_USED] * 100) / m[k][DBINFO_TOTAL] : 0); break; } g_Font[SNeutrinoSettings::FONT_TYPE_MENU]->RenderString(x + mpOffset, ypos+ mheight, width - 10, ubuf, COL_MENUCONTENT_TEXT);