From e4d526f2ef494b0850b59c46a931655c99e30d45 Mon Sep 17 00:00:00 2001 From: Artur Reit Date: Sun, 19 Sep 2010 13:17:46 +0200 Subject: [PATCH] Use correct prefix for size units --- src/downloaditem.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/downloaditem.cpp b/src/downloaditem.cpp index ab92fc3..25e85cb 100644 --- a/src/downloaditem.cpp +++ b/src/downloaditem.cpp @@ -214,10 +214,10 @@ QString DownloadItem::formattedFilesize(qint64 size) { unit = tr("bytes"); } else if (size < 1024*1024) { size /= 1024; - unit = tr("KB"); + unit = tr("KiB"); } else { size /= 1024*1024; - unit = tr("MB"); + unit = tr("MiB"); } return QString(QLatin1String("%1 %2")).arg(size).arg(unit); } @@ -236,10 +236,10 @@ QString DownloadItem::formattedSpeed(double speed) { unit = tr("bytes/sec"); } else if (speedInt < 1024*1024) { speedInt /= 1024; - unit = tr("KB/sec"); + unit = tr("KiB/sec"); } else { speedInt /= 1024*1024; - unit = tr("MB/sec"); + unit = tr("MiB/sec"); } return QString(QLatin1String("%1 %2")).arg(speedInt).arg(unit); } -- 2.39.5