From d839a31d7f3716eec54d8bd09cb1bda828bd13ca Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Tue, 23 Oct 2018 11:26:37 +0530 Subject: [PATCH] oops forgot to convert poll timeout to milliseconds --- kitty/child-monitor.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/kitty/child-monitor.c b/kitty/child-monitor.c index 49f1a7450..0e01aabe3 100644 --- a/kitty/child-monitor.c +++ b/kitty/child-monitor.c @@ -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);