Correct restart delay check (<= instead of <).
authorDavin McCall <davmac@davmac.org>
Fri, 23 Jun 2017 09:00:26 +0000 (10:00 +0100)
committerDavin McCall <davmac@davmac.org>
Fri, 23 Jun 2017 09:26:56 +0000 (10:26 +0100)
src/service.cc

index 77b901fd21d97c5830ba129082f41f0dd49d8cfc..de2dcbc1daaea62cca9f338340ebd0de21f2d0ac 100644 (file)
@@ -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();
     }