[Libreoffice-commits] online.git: common/FileUtil.cpp

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Thu May 23 10:38:48 UTC 2019


 common/FileUtil.cpp |    9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

New commits:
commit 6e87ebc91ec0ef47125ec18b39ebff8d91c0997d
Author:     Samuel Mehrbrodt <Samuel.Mehrbrodt at cib.de>
AuthorDate: Thu May 23 11:28:37 2019 +0200
Commit:     Samuel Mehrbrodt <Samuel.Mehrbrodt at cib.de>
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 <Samuel.Mehrbrodt at cib.de>
    Tested-by: Samuel Mehrbrodt <Samuel.Mehrbrodt at cib.de>

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;


More information about the Libreoffice-commits mailing list