Compare commits

...

2 Commits

Author SHA1 Message Date
shun095 f0483a3245
Merge 1eb5ce278c into 028d653632 2025-01-16 15:31:38 +01:00
ishitaku5522 1eb5ce278c fix(timer): fix calculation logic of timer plugin 2024-12-19 18:17:59 +09:00
1 changed files with 1 additions and 1 deletions

View File

@ -6,7 +6,7 @@ __timer_current_time() {
}
__timer_format_duration() {
local mins=$(printf '%.0f' $(($1 / 60)))
local mins=$(printf '%.0f' $(($(IFS='.' read int dec <<< "$1"; echo $int) / 60)))
local secs=$(printf "%.${TIMER_PRECISION:-1}f" $(($1 - 60 * mins)))
local duration_str=$(echo "${mins}m${secs}s")
local format="${TIMER_FORMAT:-/%d}"