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);