]> git.cworth.org Git - sup/commitdiff
fixed progress message
authorwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Tue, 5 Jun 2007 00:42:10 +0000 (00:42 +0000)
committerwmorgan <wmorgan@5c8cc53c-5e98-4d25-b20a-d8db53a31250>
Tue, 5 Jun 2007 00:42:10 +0000 (00:42 +0000)
git-svn-id: svn://rubyforge.org/var/svn/sup/trunk@434 5c8cc53c-5e98-4d25-b20a-d8db53a31250

bin/sup-sync

index 371c6957cbb4a0ae8577699a465855de0a386e38..ab72ea0c4f5ddcbb71ca65ef93dfe3e00443c1d9 100644 (file)
@@ -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?