1
0
mirror of https://git.decapod.one/brethil/dotfiles synced 2024-11-21 19:11:30 +01:00

zsh: alarm: add elapsed time fixup

This commit is contained in:
bretello 2024-08-02 18:19:56 +02:00
parent 4b457a022c
commit 015dd26a90
Signed by: brethil
GPG Key ID: 876AAC6290170FE7

View File

@ -97,7 +97,7 @@ function alarm {
if [[ $1 -lt 3600 ]]; then
minutes=$(($1/60))
seconds=$(($1%60))
printf "%02dm:%02dm" $minutes $seconds
printf "%dm:%02dm" $minutes $seconds
return
fi