Skip to content

Commit

Permalink
reduce spaces reserved to percentage label to 6 characters
Browse files Browse the repository at this point in the history
  • Loading branch information
edouard-lopez committed Feb 5, 2019
1 parent 8ecca65 commit 06a8caf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion progress-bar.sh
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ progress-bar() {
local fit_to_screen
local space_reserved

space_reserved=10 # reserved width for the percentage value
space_reserved=6 # reserved width for the percentage value
duration=${1}
columns=$(tput cols)
space_available=$(( columns-space_reserved ))
Expand Down

0 comments on commit 06a8caf

Please sign in to comment.