From 015dd26a9088387204a9b075d6eea54092274ca8 Mon Sep 17 00:00:00 2001 From: bretello Date: Fri, 2 Aug 2024 18:19:56 +0200 Subject: [PATCH] zsh: alarm: add elapsed time fixup --- functions/misc.zsh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/functions/misc.zsh b/functions/misc.zsh index b80f680..784bf8a 100755 --- a/functions/misc.zsh +++ b/functions/misc.zsh @@ -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