From cad7183a18f564efd9bc8bc8e17fdc7910942693 Mon Sep 17 00:00:00 2001 From: dmiller Date: Wed, 17 Aug 2016 20:31:42 +0000 Subject: [PATCH] Fix another floating-point print bug: http://seclists.org/nmap-dev/2016/q3/191 --- nselib/brute.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/nselib/brute.lua b/nselib/brute.lua index 27534fe2c..822e10dbf 100644 --- a/nselib/brute.lua +++ b/nselib/brute.lua @@ -718,7 +718,7 @@ Engine = local tps = ( sum == 0 ) and ( self.counter / time_diff ) or ( sum / #self.tps ) -- Add the statistics to the result - result.Statistics = ("Performed %d guesses in %d seconds, average tps: %d"):format( self.counter, time_diff, tps ) + result.Statistics = ("Performed %d guesses in %d seconds, average tps: %.1f"):format( self.counter, time_diff, tps ) if ( self.options.max_guesses > 0 ) then -- we only display a warning if the guesses are equal to max_guesses