diff options
Diffstat (limited to 'src/main/main.c')
| -rw-r--r-- | src/main/main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/main/main.c b/src/main/main.c index 57c2454..a10a461 100644 --- a/src/main/main.c +++ b/src/main/main.c @@ -431,7 +431,8 @@ int main(int argc, char *argv[]) { * reason. This is also the reason that there is no timed scope around * this, it simply makes no sense. */ - reactor_update(reactor, needs_render ? (time_to_render_ns / 1e6) : -1); + reactor_update(reactor, + needs_render ? ((time_to_render_ns + 1e6 - 1) / 1e6) : -1); } struct timer *update_keyboard = timer_start("update-keyboard"); |
