From a17a667e4438d27118dd3904b52a3a2023d986c5 Mon Sep 17 00:00:00 2001 From: abraunegg Date: Mon, 18 Jul 2022 13:09:41 +1000 Subject: [PATCH] Increase thread sleep for better process handling (#2046) * Increase thread sleep for better process handling --- src/main.d | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/main.d b/src/main.d index 3db45b2c..02ab78f2 100644 --- a/src/main.d +++ b/src/main.d @@ -1533,7 +1533,8 @@ int main(string[] args) } } } - Thread.sleep(dur!"msecs"(500)); + // Sleep the monitor thread for 1 second, loop around and pick up any inotify changes + Thread.sleep(dur!"seconds"(1)); } } }