From d3378c131a0f542bb43a838b56da75e8aacf22ee Mon Sep 17 00:00:00 2001 From: Daniel Molkentin Date: Fri, 9 Aug 2013 12:57:13 +0200 Subject: [PATCH] Fix formatting for 1 byte size in octetsToString() --- src/mirall/utility.cpp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/mirall/utility.cpp b/src/mirall/utility.cpp index cee8c3998..cd7dd4162 100644 --- a/src/mirall/utility.cpp +++ b/src/mirall/utility.cpp @@ -124,6 +124,8 @@ QString Utility::octetsToString( qint64 octets ) return QString::number(qRound64(qreal(octets)/qreal(mb))) + QLatin1String(" MB"); } else if (octets >= kb) { return QString::number(qRound64(qreal(octets)/qreal(kb))) + QLatin1String(" KB"); + } else if (octets == 1){ + return QLatin1String("1 byte"); } else { return QString::number(octets) + QLatin1String(" bytes"); }