From 7488a05edb51a52c6a288bff50091450fcfaddfa Mon Sep 17 00:00:00 2001 From: Ryan Norton Date: Fri, 24 Sep 2004 05:48:24 +0000 Subject: [PATCH] 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 --- src/unix/gsocket.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/unix/gsocket.cpp b/src/unix/gsocket.cpp index 488b28e62b..a1ceb862e3 100644 --- a/src/unix/gsocket.cpp +++ b/src/unix/gsocket.cpp @@ -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); -- 2.45.2