Skip to content

Commit b55db47

Browse files
authored
Merge pull request #2240 from BarbUk/fix/clock_hand
2 parents 5a17fe6 + c14e77e commit b55db47

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/command_duration.bash

+1-1
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ function _dynamic_clock_icon {
2626
local clock_hand
2727
# clock hand value is between 90 and 9b in hexadecimal.
2828
# so between 144 and 155 in base 10.
29-
printf -v clock_hand '%x' $(((${1:-${SECONDS}} % 12) + 144))
29+
printf -v clock_hand '%x' $((((${1:-${SECONDS}} - 1) % 12) + 144))
3030
printf -v 'COMMAND_DURATION_ICON' '%b' "\xf0\x9f\x95\x$clock_hand"
3131
}
3232

0 commit comments

Comments
 (0)