From be0969728d9cdd81da45a7d46ab710d57a7d278a Mon Sep 17 00:00:00 2001 From: Davin McCall Date: Fri, 23 Jun 2017 10:00:26 +0100 Subject: [PATCH] Correct restart delay check (<= instead of <). --- src/service.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/service.cc b/src/service.cc index 77b901f..de2dcbc 100644 --- a/src/service.cc +++ b/src/service.cc @@ -1322,7 +1322,7 @@ bool base_process_service::restart_ps_process() noexcept // Check if enough time has lapsed since the prevous restart. If not, start a timer: time_val tdiff = current_time - last_start_time; - if (restart_delay < tdiff) { + if (restart_delay <= tdiff) { // > restart delay (normally 200ms) do_restart(); } -- 2.25.1