X-Git-Url: https://git.saurik.com/wxWidgets.git/blobdiff_plain/d141826876edc1e7dd5bf18d050cea8754a3f718..1c467e8804ff4c1cd3aee52bb16dfa4f976160a0:/src/common/selectdispatcher.cpp diff --git a/src/common/selectdispatcher.cpp b/src/common/selectdispatcher.cpp index dca9adec85..db763eca32 100644 --- a/src/common/selectdispatcher.cpp +++ b/src/common/selectdispatcher.cpp @@ -3,9 +3,8 @@ // Purpose: implements dispatcher for select() call // Author: Lukasz Michalski and Vadim Zeitlin // Created: December 2006 -// RCS-ID: $Id$ // Copyright: (c) 2006 Lukasz Michalski -// License: wxWindows licence +// Licence: wxWindows licence /////////////////////////////////////////////////////////////////////////////// // ============================================================================ @@ -220,8 +219,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 {