mirror of
https://github.com/nextcloud/desktop.git
synced 2024-11-26 23:28:14 +03:00
Rename env variables to include unit #2939
This commit is contained in:
parent
175ad6fb77
commit
76d9b9c0e2
1 changed files with 2 additions and 2 deletions
|
@ -47,7 +47,7 @@ qint64 criticalFreeSpaceLimit()
|
|||
qint64 value = 50 * 1000 * 1000LL;
|
||||
|
||||
static bool hasEnv = false;
|
||||
static qint64 env = qgetenv("OWNCLOUD_CRITICAL_FREE_SPACE").toLongLong(&hasEnv);
|
||||
static qint64 env = qgetenv("OWNCLOUD_CRITICAL_FREE_SPACE_BYTES").toLongLong(&hasEnv);
|
||||
if (hasEnv) {
|
||||
value = env;
|
||||
}
|
||||
|
@ -60,7 +60,7 @@ qint64 freeSpaceLimit()
|
|||
qint64 value = 250 * 1000 * 1000LL;
|
||||
|
||||
static bool hasEnv = false;
|
||||
static qint64 env = qgetenv("OWNCLOUD_FREE_SPACE").toLongLong(&hasEnv);
|
||||
static qint64 env = qgetenv("OWNCLOUD_FREE_SPACE_BYTES").toLongLong(&hasEnv);
|
||||
if (hasEnv) {
|
||||
value = env;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue