1
0
mirror of https://github.com/nmap/nmap.git synced 2025-12-11 10:19:03 +00:00

Fix another floating-point print bug: http://seclists.org/nmap-dev/2016/q3/191

This commit is contained in:
dmiller
2016-08-17 20:31:42 +00:00
parent 6e983b9e45
commit cad7183a18

View File

@@ -718,7 +718,7 @@ Engine =
local tps = ( sum == 0 ) and ( self.counter / time_diff ) or ( sum / #self.tps ) local tps = ( sum == 0 ) and ( self.counter / time_diff ) or ( sum / #self.tps )
-- Add the statistics to the result -- 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 if ( self.options.max_guesses > 0 ) then
-- we only display a warning if the guesses are equal to max_guesses -- we only display a warning if the guesses are equal to max_guesses