MCPcopy Create free account
hub / github.com/apache/arrow / show_progress

Method show_progress

dev/release/binary-task.rb:128–136  ·  view source on GitHub ↗
(time_current)

Source from the content-addressed store, hash-verified

126
127 private
128 def show_progress(time_current)
129 n_finishes = @count_current - @count_previous
130 throughput = n_finishes.to_f / (time_current - @time_previous)
131 @time_previous = time_current
132 @count_previous = @count_current
133
134 message = build_message(time_current, throughput)
135 $stderr.print("\r#{message}") if message
136 end
137
138 def build_message(time_current, throughput)
139 percent = (@count_current / @count_max.to_f) * 100

Callers

nothing calls this directly

Calls 2

printMethod · 0.80
to_fMethod · 0.45

Tested by

no test coverage detected