PATCH: [ 1033006 ] Fix: socket s timeout of < 1s doesnt work

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@29306 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Ryan Norton
2004-09-24 05:48:24 +00:00
parent 8715d2d3c2
commit 7488a05edb

View File

@@ -923,7 +923,7 @@ GSocketEventFlags GSocket::Select(GSocketEventFlags flags)
/* Do not use a static struct, Linux can garble it */
tv.tv_sec = m_timeout / 1000;
tv.tv_usec = (m_timeout % 1000) / 1000;
tv.tv_usec = (m_timeout % 1000) * 1000;
FD_ZERO(&readfds);
FD_ZERO(&writefds);