mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-27 17:37:36 +03:00
Fix formatting for 1 byte size in octetsToString()
This commit is contained in:
parent
0300a85295
commit
d3378c131a
1 changed files with 2 additions and 0 deletions
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue