Skip to content

Commit

Permalink
refactor: optimize sleep time in core_messages.sh
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
dgibbs64 committed Oct 10, 2023
1 parent 14b5ee9 commit efee3e3
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions lgsm/modules/core_messages.sh
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,10 @@ fn_sleep_time() {
sleep "0.1"
}

fn_sleep_time_05() {
sleep "0.5"
}

fn_sleep_time_1() {
sleep "1"
}
Expand Down Expand Up @@ -144,7 +148,7 @@ fn_print_dots() {
else
echo -en "${creeol}[ .... ] $*"
fi
fn_sleep_time_1
fn_sleep_time_05
}

fn_print_dots_nl() {
Expand All @@ -153,7 +157,7 @@ fn_print_dots_nl() {
else
echo -e "${creeol}[ .... ] $*"
fi
fn_sleep_time_1
fn_sleep_time_05
echo -en "\n"
}

Expand Down

0 comments on commit efee3e3

Please sign in to comment.