From f66c43475b52e350c1517ac87982ef94c9d1c602 Mon Sep 17 00:00:00 2001 From: Jon Hart Date: Fri, 31 Oct 2014 09:39:21 -0700 Subject: [PATCH] More sane % printing for aux scanner --- lib/msf/core/auxiliary/scanner.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/msf/core/auxiliary/scanner.rb b/lib/msf/core/auxiliary/scanner.rb index fade61b0ea..5ac3c5fd01 100644 --- a/lib/msf/core/auxiliary/scanner.rb +++ b/lib/msf/core/auxiliary/scanner.rb @@ -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