mirror of
https://github.com/nextcloud/desktop.git
synced 2025-10-26 11:17:43 +00:00
moving back to 1024 as divider for kB, MB, GB & TB
This commit is contained in:
parent
94d9b8fb39
commit
c87c456ae0
@ -105,10 +105,10 @@ void Utility::setupFavLink(const QString &folder)
|
||||
|
||||
QString Utility::octetsToString( qint64 octets )
|
||||
{
|
||||
static const qint64 kb = 1000;
|
||||
static const qint64 mb = 1000 * kb;
|
||||
static const qint64 gb = 1000 * mb;
|
||||
static const qint64 tb = 1000 * gb;
|
||||
static const qint64 kb = 1024;
|
||||
static const qint64 mb = 1024 * kb;
|
||||
static const qint64 gb = 1024 * mb;
|
||||
static const qint64 tb = 1024 * gb;
|
||||
|
||||
QString s;
|
||||
qreal value = octets;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user