X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/526954c5968baa29218c994ec48e476ae2bd4b9f..77c8efc8c37da6d6a5e2e8022d21d1cd7d76371d:/src/common/selectdispatcher.cpp?ds=sidebyside diff --git a/src/common/selectdispatcher.cpp b/src/common/selectdispatcher.cpp index 7e693c54ca..fd0a26938c 100644 --- a/src/common/selectdispatcher.cpp +++ b/src/common/selectdispatcher.cpp @@ -220,8 +220,8 @@ int wxSelectDispatcher::DoSelect(wxSelectSets& sets, int timeout) const if ( timeout != TIMEOUT_INFINITE ) { ptv = &tv; - tv.tv_sec = 0; - tv.tv_usec = timeout*1000; + tv.tv_sec = timeout / 1000; + tv.tv_usec = (timeout % 1000)*1000; } else // no timeout {