From: Artur Reit Date: Sun, 19 Sep 2010 11:17:46 +0000 (+0200) Subject: Use correct prefix for size units X-Git-Tag: 1.2~6^2~3 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=e4d526f2ef494b0850b59c46a931655c99e30d45;p=minitube Use correct prefix for size units --- 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); }