From 4725370d8e53f4a00d242bdc957dab0de47b3a53 Mon Sep 17 00:00:00 2001 From: Hugo Rivera <6373447+roguh@users.noreply.github.com> Date: Tue, 20 Mar 2018 03:46:13 -0600 Subject: [PATCH 1/2] Set `MIN_WAIT` without config file --- dev/debug_osync.sh | 4 ++++ dev/n_osync.sh | 3 +++ 2 files changed, 7 insertions(+) diff --git a/dev/debug_osync.sh b/dev/debug_osync.sh index 631352f..e9a9df9 100755 --- a/dev/debug_osync.sh +++ b/dev/debug_osync.sh @@ -5298,7 +5298,11 @@ if [ $_QUICK_SYNC -eq 2 ]; then if [ "$PATH_SEPARATOR_CHAR" == "" ]; then PATH_SEPARATOR_CHAR=";" fi + + if [ $(IsInteger $MIN_WAIT) -ne 1 ]; then MIN_WAIT=30 + + fi else ConfigFile="${1}" LoadConfigFile "$ConfigFile" diff --git a/dev/n_osync.sh b/dev/n_osync.sh index db7edbf..b0f711b 100755 --- a/dev/n_osync.sh +++ b/dev/n_osync.sh @@ -2704,7 +2704,10 @@ if [ $_QUICK_SYNC -eq 2 ]; then if [ "$PATH_SEPARATOR_CHAR" == "" ]; then PATH_SEPARATOR_CHAR=";" fi + + if [ $(IsInteger $MIN_WAIT) -ne 1 ]; then MIN_WAIT=30 + fi else ConfigFile="${1}" LoadConfigFile "$ConfigFile" 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 2/2] 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