lib/pkg-wizard/commands/remote_build.rb in pkg-wizard-0.1.5 vs lib/pkg-wizard/commands/remote_build.rb in pkg-wizard-0.1.6

- old
+ new

@@ -89,21 +89,19 @@ end pkgs.each do |pkg| fo = File.new(pkg) fsize = File.size(pkg) count = 0 - pcount = 0 $stdout.sync = true line_reset = "\r\e[0K" res = StreamingUploader.post( bbot_url + '/build/', { 'pkg' => fo } ) do |size| count += size per = (100*count)/fsize if per %10 == 0 - pcount += 10 - print "#{line_reset}Uploading:".ljust(40) + "#{pcount}%" + print "#{line_reset}Uploading:".ljust(40) + "[#{count}/#{fsize}]" end end puts "#{line_reset}Uploading: #{File.basename(pkg)} ".ljust(40) + "[#{fsize}] [COMPLETE]" end end