Fix timeval field types
This commit is contained in:
parent
2787871ca4
commit
995c7b4634
|
@ -87,7 +87,7 @@ void EventManager::handle_next_events(EventMode mode)
|
|||
auto timeout = duration_cast<microseconds>(next_timer - Clock::now()).count();
|
||||
|
||||
constexpr auto us = 1000000000ll;
|
||||
timeval tv{ (long)(timeout / us), (long)(timeout % us) };
|
||||
timeval tv{ (time_t)(timeout / us), (suseconds_t)(timeout % us) };
|
||||
int res = select(max_fd + 1, &rfds, nullptr, nullptr, &tv);
|
||||
|
||||
// copy forced fds *after* poll, so that signal handlers can write to
|
||||
|
|
Loading…
Reference in New Issue
Block a user