More sane % printing for aux scanner

bug/bundler_fix
Jon Hart 2014-10-31 09:39:21 -07:00
parent 77cd6dbc8b
commit f66c43475b
1 changed files with 1 additions and 1 deletions

View File

@ -244,7 +244,7 @@ def scanner_show_progress
if(pct >= (@range_percent + @show_percent))
@range_percent = @range_percent + @show_percent
tdlen = @range_count.to_s.length
print_status("Scanned #{"%.#{tdlen}d" % @range_done} of #{@range_count} hosts (#{"%.3d" % pct.to_i}% complete)")
print_status("Scanned #{"%.#{tdlen}d" % @range_done} of #{@range_count} hosts (#{"%.3g" % pct}% complete)")
end
end