mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-27 09:30:13 +03:00
Units: Back to the "usual" mix units.
Now we display units again numerically wrong (based on 1024) but back to how it was before in ownCloud.
This commit is contained in:
parent
c0f8ff1030
commit
995b42d0fc
1 changed files with 5 additions and 4 deletions
|
@ -103,10 +103,11 @@ void Utility::setupFavLink(const QString &folder)
|
||||||
|
|
||||||
QString Utility::octetsToString( qint64 octets )
|
QString Utility::octetsToString( qint64 octets )
|
||||||
{
|
{
|
||||||
static const qint64 kb = 1000;
|
#define THE_FACTOR 1024
|
||||||
static const qint64 mb = 1000 * kb;
|
static const qint64 kb = THE_FACTOR;
|
||||||
static const qint64 gb = 1000 * mb;
|
static const qint64 mb = THE_FACTOR * kb;
|
||||||
static const qint64 tb = 1000 * gb;
|
static const qint64 gb = THE_FACTOR * mb;
|
||||||
|
static const qint64 tb = THE_FACTOR * gb;
|
||||||
|
|
||||||
QString s;
|
QString s;
|
||||||
qreal value = octets;
|
qreal value = octets;
|
||||||
|
|
Loading…
Reference in a new issue