Rename env variables to include unit #2939

This commit is contained in:
Christian Kamm 2015-11-10 12:06:57 +01:00
parent 175ad6fb77
commit 76d9b9c0e2

View file

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