oops forgot to convert poll timeout to milliseconds
This commit is contained in:
parent
1de510f46f
commit
d839a31d7f
@ -1007,7 +1007,7 @@ io_loop(void *data) {
|
||||
if (has_pending_wakeups) {
|
||||
now = monotonic();
|
||||
double time_delta = OPT(input_delay) - (now - last_main_loop_wakeup_at);
|
||||
if (time_delta >= 0) ret = poll(fds, self->count + EXTRA_FDS, time_delta);
|
||||
if (time_delta >= 0) ret = poll(fds, self->count + EXTRA_FDS, (int)ceil(1000 * time_delta));
|
||||
else ret = 0;
|
||||
} else {
|
||||
ret = poll(fds, self->count + EXTRA_FDS, -1);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user