From efee3e3e70e537a496c429c69740e077e50b91fa Mon Sep 17 00:00:00 2001 From: Daniel Gibbs Date: Tue, 10 Oct 2023 21:55:09 +0100 Subject: [PATCH] refactor: optimize sleep time in core_messages.sh The commit optimizes the sleep time in the core_messages.sh file. The fn_sleep_time and fn_print_dots functions now use a shorter sleep time of 0.5 seconds instead of 1 second, resulting in faster execution. --- lgsm/modules/core_messages.sh | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/lgsm/modules/core_messages.sh b/lgsm/modules/core_messages.sh index aa0d7c9505..929e942be6 100644 --- a/lgsm/modules/core_messages.sh +++ b/lgsm/modules/core_messages.sh @@ -38,6 +38,10 @@ fn_sleep_time() { sleep "0.1" } +fn_sleep_time_05() { + sleep "0.5" +} + fn_sleep_time_1() { sleep "1" } @@ -144,7 +148,7 @@ fn_print_dots() { else echo -en "${creeol}[ .... ] $*" fi - fn_sleep_time_1 + fn_sleep_time_05 } fn_print_dots_nl() { @@ -153,7 +157,7 @@ fn_print_dots_nl() { else echo -e "${creeol}[ .... ] $*" fi - fn_sleep_time_1 + fn_sleep_time_05 echo -en "\n" }