From 9921dab064b89c14bc461d95a621c8934142fe31 Mon Sep 17 00:00:00 2001 From: whyour Date: Fri, 17 Feb 2023 23:03:06 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E6=97=A5=E5=BF=97=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E5=90=8D=E6=A0=BC=E5=BC=8F=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- shell/task.sh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/shell/task.sh b/shell/task.sh index 53ebcf06..1e59b2ac 100755 --- a/shell/task.sh +++ b/shell/task.sh @@ -32,8 +32,8 @@ handle_log_path() { if [[ ! -z $ID ]]; then suffix="_${ID}" fi - time=$(date "+$time_format") - log_time=$(format_log_time "$time_format" "$time") + time=$(date "+$mtime_format") + log_time=$(format_log_time "$mtime_format" "$time") log_dir_tmp="${file_param##*/}" if [[ $file_param =~ "/" ]]; then if [[ $file_param == /* ]]; then @@ -57,6 +57,7 @@ handle_log_path() { format_params() { time_format="%Y-%m-%d %H:%M:%S" + mtime_format="%Y-%m-%d %H:%M:%S.%3N" timeoutCmd="" if type timeout &>/dev/null; then timeoutCmd="timeout --foreground -s 14 -k 10s $command_timeout_time "