#6487 Changed timeout multiplier

We belive that there was a bug in the polling function that caused it
to return straight away instead of actually waiting for the timeout.
This commit is contained in:
Jamie Newbon 2020-05-04 13:46:21 +01:00
parent 26f4b4da46
commit a324957e2d

View file

@ -120,7 +120,7 @@ XWindowsEventQueueBuffer::waitForEvent(double dtimeout)
pfds[1].fd = m_pipefd[0]; pfds[1].fd = m_pipefd[0];
pfds[1].events = POLLIN; pfds[1].events = POLLIN;
int timeout = (dtimeout < 0.0) ? -1 : int timeout = (dtimeout < 0.0) ? -1 :
static_cast<int>(1000.0 * dtimeout); static_cast<int>(dtimeout);
int remaining = timeout; int remaining = timeout;
int retval = 0; int retval = 0;
#else #else