X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/54d5abee4136a86925d75ee3b3020b82785a97dd..3e17bc3f7333addb73a2ba6fee52d19d47d77360:/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);