More sane % printing for aux scanner

bug/bundler_fix
Jon Hart 2014-10-31 10:25:01 -07:00
parent 94d4388af9
commit 1f6658639f
1 changed files with 2 additions and 2 deletions

View File

@ -241,10 +241,10 @@ end
def scanner_show_progress
pct = scanner_progress
if(pct >= (@range_percent + @show_percent))
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 (#{"%.3g" % pct}% complete)")
print_status(sprintf("Scanned %#{tdlen}d of %d hosts (%d%% complete)", @range_done, @range_count, pct))
end
end