Module: check_mk
Branch: master
Commit: 5e97e283caf5af7abed1c7acf8e5209a7a591966
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=5e97e283caf5af…
Author: Andreas Boesl <ab(a)mathias-kettner.de>
Date: Thu Dec 11 16:36:05 2014 +0100
mknotifyd: minor tweaks
---
doc/treasures/mknotifyd | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/doc/treasures/mknotifyd b/doc/treasures/mknotifyd
index ee760cd..d42af2b 100755
--- a/doc/treasures/mknotifyd
+++ b/doc/treasures/mknotifyd
@@ -124,9 +124,9 @@ class SpoolfilesHandler:
def process_directory(self, dir_path, files_older_than = None):
- now = time.time()
for root, dirs, files in os.walk(dir_path):
for spoolfile in files:
+ now = time.time()
spoolfile_process_result = -1
# Check spoolfile type
# Spoolfiles with the key forward are handled locally
@@ -464,7 +464,7 @@ def run_notifyd():
g_spoolfiles_handler._should_terminate = True
now = time.time()
while (g_tcp_server._is_running or g_spoolfiles_handler._is_running) \
- and time.time() - now < 2:
+ and time.time() - now < 4:
time.sleep(0.1)
if g_tcp_server._is_running: