┌   ┐
54
└   ┘

summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJeff Mitchell <[email protected]>2008-03-28 01:21:19 +0000
committerJeff Mitchell <[email protected]>2008-03-28 01:21:19 +0000
commit994e0570eec41e639044b74c97898ee4aadffe32 (patch)
treecde0c475a379eadfe972f52f5bc6e3a15a39dc2a
parentdaf788e858774b4d5e11ac199fecfa0e6896e1bb (diff)
This value was still wrong, because I mixed up kibibytes and kilobytes. Assuming KDiskFreeSpace is really returning kB = 1000 bytes instead of kiB as according to Si rules,
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
-rw-r--r--src/statusbarspaceinfo.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/statusbarspaceinfo.cpp b/src/statusbarspaceinfo.cpp
index 8ee98a3d0..d30e995a2 100644
--- a/src/statusbarspaceinfo.cpp
+++ b/src/statusbarspaceinfo.cpp
@@ -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);
}