mirror of
https://git.decapod.one/brethil/dotfiles
synced 2024-11-22 03:21:30 +01:00
zsh: alarm: add elapsed time fixup
This commit is contained in:
parent
4b457a022c
commit
015dd26a90
|
@ -97,7 +97,7 @@ function alarm {
|
||||||
if [[ $1 -lt 3600 ]]; then
|
if [[ $1 -lt 3600 ]]; then
|
||||||
minutes=$(($1/60))
|
minutes=$(($1/60))
|
||||||
seconds=$(($1%60))
|
seconds=$(($1%60))
|
||||||
printf "%02dm:%02dm" $minutes $seconds
|
printf "%dm:%02dm" $minutes $seconds
|
||||||
return
|
return
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user