differentiate between stdin and file (estimating)

This commit is contained in:
jamesalbert
2017-04-11 03:20:11 -07:00
parent beec0bd35a
commit f3bd995528

View File

@@ -54,7 +54,8 @@ class WpUser < WpItem
request.on_complete do |response|
if options[:show_progression] && !found
progress_bar.progress += 1
if progress_bar.progress.fdiv(progress_bar.total) >= 0.8
percentage = progress_bar.progress.fdiv(progress_bar.total)
if options[:starting_at] && percentage >= 0.8
progress_bar.total *= 2
end
end