FAST_TIMO is 2 ms not 2 usec. Noticed on Windows but this obviously can't

fix my problem with slirp_select_fill() there as it still doesn't fill in
any socket descriptor. :-/ I think I won't bother much for Windows...
This commit is contained in:
gbeauche 2006-04-26 06:26:14 +00:00
parent f56f28b813
commit 8ca74c4eac

View File

@ -333,8 +333,8 @@ int slirp_select_fill(int *pnfds,
* Adjust the timeout to make the minimum timeout
* 2ms (XXX?) to lessen the CPU load
*/
if (timeout < FAST_TIMO)
timeout = FAST_TIMO;
if (timeout < (FAST_TIMO * 1000))
timeout = FAST_TIMO * 1000;
return timeout;
}