Fixed: Use translated size units, see #279

--HG--
branch : develop
This commit is contained in:
kervala 2016-09-21 15:44:02 +02:00
parent f17e0c2dc1
commit f1a9a44028

View file

@ -31,7 +31,7 @@ QString qBytesToHumanReadable(qint64 bytes)
units.push_back(QObject::tr("PiB").toUtf8().constData()); units.push_back(QObject::tr("PiB").toUtf8().constData());
} }
return QString::fromUtf8(NLMISC::bytesToHumanReadable(bytes).c_str()); return QString::fromUtf8(NLMISC::bytesToHumanReadableUnits(bytes, units).c_str());
} }
qint64 getDirectorySize(const QString &directory, bool recursize) qint64 getDirectorySize(const QString &directory, bool recursize)