X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/54d5abee4136a86925d75ee3b3020b82785a97dd..162d656dfc147d70a0584e822570e236052f3e16:/src/unix/gsocket.cpp 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);