Skip to content

Commit

Permalink
fix a type in progress bar
Browse files Browse the repository at this point in the history
  • Loading branch information
KristofferC authored Mar 18, 2021
1 parent 8139716 commit 8b0045d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/MiniProgressBars.jl
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ function show_progress(io::IO, p::MiniProgressBar)
progress_text = if p.percentage
@sprintf "%2.1f %%" perc
else
sprint(p.current, "/", p.max)
string(p.current, "/", p.max)
end

max_progress_width = max(0, min(displaysize(io)[2] - textwidth(p.header) - textwidth(progress_text) - 10 , p.width))
Expand Down

0 comments on commit 8b0045d

Please sign in to comment.