From 571be5949bb6f2d7ebcf7cfc1b7df8c851c37234 Mon Sep 17 00:00:00 2001 From: Tom Vincent Date: Sun, 22 Dec 2013 13:53:38 +0000 Subject: [PATCH] Fix minutes typo in human_time() --- pure.zsh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pure.zsh b/pure.zsh index acda5f6..5c63503 100644 --- a/pure.zsh +++ b/pure.zsh @@ -18,7 +18,7 @@ # turns seconds into human readable time -# 165392 => 1d 21h 56h 32s +# 165392 => 1d 21h 56m 32s prompt_pure_human_time() { local tmp=$1 local days=$(( tmp / 60 / 60 / 24 )) @@ -27,7 +27,7 @@ prompt_pure_human_time() { local seconds=$(( tmp % 60 )) (( $days > 0 )) && echo -n "${days}d " (( $hours > 0 )) && echo -n "${hours}h " - (( $minutes > 0 )) && echo -n "${minutes}h " + (( $minutes > 0 )) && echo -n "${minutes}m " echo "${seconds}s" }