Fix formatting for 1 byte size in octetsToString()

This commit is contained in:
Daniel Molkentin 2013-08-09 12:57:13 +02:00
parent 0300a85295
commit d3378c131a

View file

@ -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");
}