From: wmorgan Date: Tue, 5 Jun 2007 00:42:10 +0000 (+0000) Subject: fixed progress message X-Git-Url: https://git.cworth.org/git?a=commitdiff_plain;h=9762bea492d4b3b975a7354d19118fa886f89ff9;p=sup fixed progress message git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@434 5c8cc53c-5e98-4d25-b20a-d8db53a31250 --- diff --git a/bin/sup-sync b/bin/sup-sync index 371c695..ab72ea0 100644 --- a/bin/sup-sync +++ b/bin/sup-sync @@ -178,7 +178,7 @@ begin elapsed = last_info_time - start_time pctdone = source.respond_to?(:pct_done) ? source.pct_done : 100.0 * (source.cur_offset.to_f - source.start_offset).to_f / (source.end_offset - source.start_offset).to_f remaining = (100.0 - pctdone) * (elapsed.to_f / pctdone) - $stderr.puts "## #{num_added + num_updated} (#{pctdone}%) read; #{elapsed.to_time_s} elapsed; #{remaining.to_time_s} remaining" + $stderr.puts "## #{num_scanned} (#{pctdone}%) read; #{elapsed.to_time_s} elapsed; #{remaining.to_time_s} remaining" end if index_state.nil?