]> cloud.milkyroute.net Git - dolphin.git/commitdiff
This value was still wrong, because I mixed up kibibytes and kilobytes. Assuming...
authorJeff Mitchell <mitchell@kde.org>
Fri, 28 Mar 2008 01:21:19 +0000 (01:21 +0000)
committerJeff Mitchell <mitchell@kde.org>
Fri, 28 Mar 2008 01:21:19 +0000 (01:21 +0000)
this value should now be correct (as opposed to the original code which assumed it was actually returning kibibytes, or my incorrect fix which multiplied the kibibyte value by
a kilobyte factor to pass into convertSize.

svn path=/trunk/KDE/kdebase/apps/; revision=791030

src/statusbarspaceinfo.cpp

index 8ee98a3d0cfa6208cc51bce1c8fe77ece6c16ba3..d30e995a2d04901944f4ec1033b0cac58d407b60 100644 (file)
@@ -74,7 +74,7 @@ void StatusBarSpaceInfo::slotFoundMountPoint(const QString& mountPoint,
     const bool valuesChanged = (kBUsed != static_cast<quint64>(value())) ||
                                (kBAvailable != static_cast<quint64>(maximum()));
     if (valuesChanged) {
-        m_text = i18nc("@info:status Free disk space", "%1 free", KIO::convertSize(kBAvailable*1024));
+        m_text = i18nc("@info:status Free disk space", "%1 free", KIO::convertSize(kBAvailable*1000));
         setMaximum(kBSize);
         setValue(kBUsed);
     }