fix rounding error in timeout that was causing epoll_wait spin