1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-28 17:19:05 +00:00
david 1ea0135dc8 Fix printStatusMessage to show the correct elapsed time after 24
minutes. Part of what printStatusMessage does is display the total
elapsed time. The code looked like this:

  log_write(LOG_STDOUT, 
	    "Stats: %d:%02d:%02d elapsed; %d hosts completed (%d up), %d undergoing %s\n", 
	    time/60/24, time/60 % 24, time % 60, o.numhosts_scanned - o.numhosts_scanning, 
	    o.numhosts_up, o.numhosts_scanning, scantype2str(o.current_scantype));

where time is the number of seconds since the program started. However,
this code acts as though each hour has only 24 minutes. That is, after
0:23:59 it would become 1:00:00. This commit changes the 24s to 60s to
make it work right.
2008-04-23 22:42:41 +00:00
2007-11-27 22:42:03 +00:00
2008-04-09 09:55:03 +00:00
2006-12-11 00:34:26 +00:00
2008-04-11 03:54:44 +00:00
2006-12-11 00:34:26 +00:00
2006-12-11 00:34:26 +00:00
2005-06-24 23:50:23 +00:00
2008-04-11 03:54:44 +00:00
2008-04-11 03:54:44 +00:00

Here is some documentation for Nmap, but these files are much less
comprehensive than what you'll find at the actual Nmap documentation
site ( http://nmap.org ).
Languages
C 37.5%
Lua 28.1%
C++ 16.8%
Shell 5.8%
Python 4.2%
Other 7.3%