diff --git a/data_from_portwine/scripts/functions_helper b/data_from_portwine/scripts/functions_helper index be3bc80d..17b5f430 100755 --- a/data_from_portwine/scripts/functions_helper +++ b/data_from_portwine/scripts/functions_helper @@ -483,7 +483,11 @@ debug_timer () { elif [[ "$1" == "--end" ]] ; then END=$(date +%s%N) DIFF=$((($END - $START)/1000000)) - print_warning "It took $DIFF milliseconds for $2" + if [[ -n "$2" ]] ; then + print_warning "It took $DIFF milliseconds for $2" + else + print_warning "It took $DIFF milliseconds" + fi fi }