Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
libevent: Fix computation of the timeout value.
Until now, sleeping for 10s or more wouldn’t work on platforms where internal-time-units-per-second = 1e9, such as x86_64-linux-gnu. On platforms where internal-time-units-per-second = 1e3, such as i586-pc-gnu, ‘tv’ would always be zero, leading to code that keeps spinning. * extensions/libevent.c (microsec_per_time_units): New variable. (run_event_loop): Fix computation of ‘tv_sec’ and ‘tv_usec’. (init_fibers_libevt): Initialize ‘microsec_per_time_units’.
- Loading branch information