You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The Progress component displays "100.0%" no matter what value is passed to the tick method, both of these examples were taken from the documentation and neither one displays properly:
CLI::UI::Progress.progress do |bar|
20.times do
sleep 1
bar.tick(percent: 5)
end
end
CLI::UI::Progress.progress do |bar|
tick_amount = 5
index = 0
20.times do
sleep 1
index += 1
bar.tick(set_percent: index * tick_amount)
end
end
The text was updated successfully, but these errors were encountered:
I assume you closed this because you discovered that the problem was that percentages should be passed in as 0.05 rather than 5. That said, the documentation is indeed as you have it, and that should be fixed.
lugray
changed the title
Explicitly setting Progress value always displays 100%
Documentation of progress percent does not match behaviour.
Nov 9, 2018
The Progress component displays "100.0%" no matter what value is passed to the tick method, both of these examples were taken from the documentation and neither one displays properly:
The text was updated successfully, but these errors were encountered: