mirror of
https://github.com/nmap/nmap.git
synced 2025-12-09 14:11:29 +00:00
Fix another floating-point print bug: http://seclists.org/nmap-dev/2016/q3/191
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user