Skip to content

Commit

Permalink
refactor: pass milliseconds to epoll_wait
Browse files Browse the repository at this point in the history
It's only a refactor as the 1000 milliseconds is harcoded on worker.c anyway.
  • Loading branch information
steve-chavez committed Nov 11, 2024
1 parent 4cf6c24 commit 4e8f0ec
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/event.c
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ typedef struct epoll_event epoll_event;
typedef struct itimerspec itimerspec;

int inline wait_event(int fd, event *events, size_t maxevents, int wait_milliseconds){
return epoll_wait(fd, events, maxevents, /*timeout=*/1000);
return epoll_wait(fd, events, maxevents, /*timeout=*/wait_milliseconds);
}

int inline event_monitor(){
Expand Down

0 comments on commit 4e8f0ec

Please sign in to comment.