common/FileUtil.cpp | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-)
New commits: commit 6e87ebc91ec0ef47125ec18b39ebff8d91c0997d Author: Samuel Mehrbrodt <[email protected]> AuthorDate: Thu May 23 11:28:37 2019 +0200 Commit: Samuel Mehrbrodt <[email protected]> CommitDate: Thu May 23 12:38:31 2019 +0200 1GB should be enough for development Change-Id: I7567f99c4cf54a25084e25b44887b7906bbc7b06 Reviewed-on: https://gerrit.libreoffice.org/72827 Reviewed-by: Samuel Mehrbrodt <[email protected]> Tested-by: Samuel Mehrbrodt <[email protected]> diff --git a/common/FileUtil.cpp b/common/FileUtil.cpp index cae406a77..fbad5f3de 100644 --- a/common/FileUtil.cpp +++ b/common/FileUtil.cpp @@ -251,8 +251,13 @@ namespace FileUtil return hookResult; #endif - // we should be able to run just OK with 5GB - constexpr int64_t ENOUGH_SPACE = int64_t(5)*1024*1024*1024; + // we should be able to run just OK with 5GB for production or 1GB for development +#if ENABLE_DEBUG + const int64_t gb(1); +#else + const int64_t gb(5); +#endif + constexpr int64_t ENOUGH_SPACE = gb*1024*1024*1024; #ifdef __linux struct statfs sfs; _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
