OSDN Git Service

[fix] : Fixed time log
authormk-linux419 <m.k419sabuaka@gmail.com>
Sat, 16 May 2020 12:00:04 +0000 (21:00 +0900)
committermk-linux419 <m.k419sabuaka@gmail.com>
Sat, 16 May 2020 12:00:04 +0000 (21:00 +0900)
lubs

diff --git a/lubs b/lubs
index a97a043..1f59537 100755 (executable)
--- a/lubs
+++ b/lubs
@@ -41,9 +41,9 @@ _msg_common() {
         _time="$(("${_current_time}"-"${start_time}"))"
 
         if [[ "${_time}" -ge 3600 ]]; then
-            echo "[$(date -d ${_time} +%H:%M%.S)]$("${script_path}/echo_color" -t 6 "[LUBS Core]")"
+            echo "[$(date -d ${_time} +%H:%M.%S)]$("${script_path}/echo_color" -t 6 "[LUBS Core]")"
         elif [[ "${_time}" -ge 60 ]]; then
-            echo "[00:$(date -d ${_time} +%M%.S)]$("${script_path}/echo_color" -t 6 "[LUBS Core]")"
+            echo "[00:$(date -d ${_time} +%M.%S)]$("${script_path}/echo_color" -t 6 "[LUBS Core]")"
         else
             echo "[00:00.$(date -d ${_time} +%S)] $("${script_path}/echo_color" -t 6 "[LUBS Core]")"
         fi