From: Marco van Wieringen Date: Wed, 19 Sep 2012 08:14:59 +0000 (+0200) Subject: Fix bug #1934 Wrong values at media list in BAT X-Git-Tag: Release-7.0.0~106 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=1801601a04ad6ca5171ba68c3a0ce21e98fc8ce1;p=bacula%2Fbacula Fix bug #1934 Wrong values at media list in BAT --- 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 */