Skip to content

Commit 5843524

Browse files
authored
Merge pull request #849 from six2dez/dev
final fix? maybe
2 parents 0c00a3f + 807690e commit 5843524

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

reconftw.sh

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -2734,9 +2734,8 @@ function sendToNotify {
27342734
}
27352735

27362736
function start_func() {
2737-
current_date=$(date +'%Y-%m-%d %H:%M:%S')
27382737
printf "${bgreen}#######################################################################"
2739-
notification "${2}" info $current_date
2738+
notification "${2}" info
27402739
echo "[$current_date] Start function: ${1} " >>"${LOGFILE}"
27412740
start=$(date +%s)
27422741
}
@@ -2745,16 +2744,14 @@ function end_func() {
27452744
touch $called_fn_dir/.${2}
27462745
end=$(date +%s)
27472746
getElapsedTime $start $end
2748-
current_date=$(date +'%Y-%m-%d %H:%M:%S')
2749-
notification "${2} Finished in ${runtime}" info $current_date
2747+
notification "${2} Finished in ${runtime}" info
27502748
echo "[$current_date] End function: ${2} " >>"${LOGFILE}"
27512749
printf "${bblue}[$current_date] ${1} ${reset}\n"
27522750
printf "${bgreen}#######################################################################${reset}\n"
27532751
}
27542752

27552753
function start_subfunc() {
2756-
current_date=$(date +'%Y-%m-%d %H:%M:%S')
2757-
notification " ${2}" info $current_date
2754+
notification " ${2}" info
27582755
echo "[$current_date] Start subfunction: ${1} " >>"${LOGFILE}"
27592756
start_sub=$(date +%s)
27602757
}
@@ -2763,8 +2760,7 @@ function end_subfunc() {
27632760
touch $called_fn_dir/.${2}
27642761
end_sub=$(date +%s)
27652762
getElapsedTime $start_sub $end_sub
2766-
current_date=$(date +'%Y-%m-%d %H:%M:%S')
2767-
notification " ${1} in ${runtime}" good $current_date
2763+
notification " ${1} in ${runtime}" good
27682764
echo "[$current_date] End subfunction: ${1} " >>"${LOGFILE}"
27692765
}
27702766

0 commit comments

Comments
 (0)