// Purpose: implements dispatcher for select() call
// Author: Lukasz Michalski and Vadim Zeitlin
// Created: December 2006
-// RCS-ID: $Id$
// Copyright: (c) 2006 Lukasz Michalski
// Licence: wxWindows licence
///////////////////////////////////////////////////////////////////////////////
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
{