From: Davin McCall Date: Fri, 23 Jun 2017 09:00:26 +0000 (+0100) Subject: Correct restart delay check (<= instead of <). X-Git-Tag: v0.06~46 X-Git-Url: https://git.librecmc.org/?a=commitdiff_plain;h=be0969728d9cdd81da45a7d46ab710d57a7d278a;p=oweals%2Fdinit.git Correct restart delay check (<= instead of <). --- 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(); }