[Libreoffice-commits] online.git: Branch 'private/hcvcastro/forking' - loolwsd/LOOLBroker.cpp loolwsd/LOOLWSD.cpp loolwsd/LOOLWSD.hpp

Henry Castro hcastro at collabora.com
Fri Jul 24 13:32:56 PDT 2015


 loolwsd/LOOLBroker.cpp |    2 +-
 loolwsd/LOOLWSD.cpp    |    2 +-
 loolwsd/LOOLWSD.hpp    |    2 +-
 3 files changed, 3 insertions(+), 3 deletions(-)

New commits:
commit 070cf8d1c60bb325c5e2c9901dc5d006a15d4cd2
Author: Henry Castro <hcastro at collabora.com>
Date:   Fri Jul 24 16:31:08 2015 -0400

    loolwsd: sleep process 1 second

diff --git a/loolwsd/LOOLBroker.cpp b/loolwsd/LOOLBroker.cpp
index 56a9238..844b40f 100644
--- a/loolwsd/LOOLBroker.cpp
+++ b/loolwsd/LOOLBroker.cpp
@@ -24,7 +24,7 @@
 #include "Util.hpp"
 
 #define INTERVAL_PROBES 10
-#define MAINTENANCE_INTERVAL 1000000
+#define MAINTENANCE_INTERVAL 1
 
 using Poco::Path;
 using Poco::File;
diff --git a/loolwsd/LOOLWSD.cpp b/loolwsd/LOOLWSD.cpp
index 9d5115e..06efc10 100644
--- a/loolwsd/LOOLWSD.cpp
+++ b/loolwsd/LOOLWSD.cpp
@@ -693,7 +693,7 @@ int LOOLWSD::main(const std::vector<std::string>& args)
         if (timeoutCounter == INTERVAL_PROBES)
         {
             timeoutCounter = 0;
-            sleep(MAINTENANCE_INTERVAL);
+            sleep(MAINTENANCE_INTERVAL*2);
         }
     }
 
diff --git a/loolwsd/LOOLWSD.hpp b/loolwsd/LOOLWSD.hpp
index 431df53..2617cff 100644
--- a/loolwsd/LOOLWSD.hpp
+++ b/loolwsd/LOOLWSD.hpp
@@ -43,7 +43,7 @@ public:
     static const int DEFAULT_CLIENT_PORT_NUMBER = 9980;
     static const int MASTER_PORT_NUMBER = 9981;
     static const int INTERVAL_PROBES = 10;
-    static const int MAINTENANCE_INTERVAL = 1000000;
+    static const int MAINTENANCE_INTERVAL = 1;
     static const std::string CHILD_URI;
     static const std::string PIDLOG;
 


More information about the Libreoffice-commits mailing list