1
0
mirror of https://github.com/nmap/nmap.git synced 2026-01-04 05:39:01 +00:00

Change the usleep call to match the other one.

This commit is contained in:
d33tah
2013-08-09 16:59:30 +00:00
parent 9f335c6bdb
commit c68114f9bc

View File

@@ -501,7 +501,7 @@ int fselect(int s, fd_set *rmaster, fd_set *wmaster, fd_set *emaster, struct tim
if (s > 1)
fds_ready = select(s, &rset, &wset, &eset, &stv);
else
usleep(stv.tv_usec);
usleep(tv->tv_sec * 1000000UL + tv->tv_usec);
if (fds_ready > -1 && win_stdin_ready()) {
FD_SET(STDIN_FILENO, &rset);