From 3c1c606de4b038d995c45bfd99464eb9bf96c32f Mon Sep 17 00:00:00 2001 From: Hugo Rivera <6373447+roguh@users.noreply.github.com> Date: Tue, 20 Mar 2018 03:49:20 -0600 Subject: [PATCH] Set `MAX_EXEC_TIME_PER_CMD_*` variables without config file --- dev/debug_osync.sh | 8 ++++++++ dev/n_osync.sh | 8 ++++++++ 2 files changed, 16 insertions(+) diff --git a/dev/debug_osync.sh b/dev/debug_osync.sh index e9a9df9..c3cbc59 100755 --- a/dev/debug_osync.sh +++ b/dev/debug_osync.sh @@ -5295,6 +5295,14 @@ if [ $_QUICK_SYNC -eq 2 ]; then HARD_MAX_EXEC_TIME=0 fi + if [ $(IsInteger $MAX_EXEC_TIME_PER_CMD_BEFORE) -ne 1 ]; then + MAX_EXEC_TIME_PER_CMD_BEFORE=0 + fi + + if [ $(IsInteger $MAX_EXEC_TIME_PER_CMD_AFTER) -ne 1 ]; then + MAX_EXEC_TIME_PER_CMD_AFTER=0 + fi + if [ "$PATH_SEPARATOR_CHAR" == "" ]; then PATH_SEPARATOR_CHAR=";" fi diff --git a/dev/n_osync.sh b/dev/n_osync.sh index b0f711b..e2cb24f 100755 --- a/dev/n_osync.sh +++ b/dev/n_osync.sh @@ -2701,6 +2701,14 @@ if [ $_QUICK_SYNC -eq 2 ]; then HARD_MAX_EXEC_TIME=0 fi + if [ $(IsInteger $MAX_EXEC_TIME_PER_CMD_BEFORE) -ne 1 ]; then + MAX_EXEC_TIME_PER_CMD_BEFORE=0 + fi + + if [ $(IsInteger $MAX_EXEC_TIME_PER_CMD_AFTER) -ne 1 ]; then + MAX_EXEC_TIME_PER_CMD_AFTER=0 + fi + if [ "$PATH_SEPARATOR_CHAR" == "" ]; then PATH_SEPARATOR_CHAR=";" fi