From 759626165dcdd7c43fe108f31ad23235581c8024 Mon Sep 17 00:00:00 2001 From: Marco van Wieringen Date: Wed, 19 Sep 2012 10:14:59 +0200 Subject: [PATCH] Fix bug #1934 Wrong values at media list in BAT --- bacula/src/qt-console/util/fmtwidgetitem.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bacula/src/qt-console/util/fmtwidgetitem.cpp b/bacula/src/qt-console/util/fmtwidgetitem.cpp index d284ac2f14..ef742bf518 100644 --- a/bacula/src/qt-console/util/fmtwidgetitem.cpp +++ b/bacula/src/qt-console/util/fmtwidgetitem.cpp @@ -130,7 +130,7 @@ QString convertBytesIEC(qint64 qfld) /* having divided for a smaller unit, now we can safely convert to double and use the extra room for decimals */ - return QString("%1 %2iB").arg(qfld / 1000.0, 0, 'f', 2).arg(suffix); + return QString("%1 %2iB").arg(qfld / 1024.0, 0, 'f', 2).arg(suffix); } /* String to human value based on k=1000 */ -- 2.39.5