Skip to content

Commit b36406e

Browse files
Update ff_hook_syscall.c
change compile error
1 parent 5de6ec6 commit b36406e

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

adapter/syscall/ff_hook_syscall.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1827,7 +1827,7 @@ ff_hook_epoll_wait(int epfd, struct epoll_event *events,
18271827
else {
18281828
if (timeout > 0) {
18291829
clock_gettime(CLOCK_MONOTONIC_COARSE, &t_n);
1830-
now_time_ms = t_n * 1000 + t_n / 1000000;
1830+
now_time_ms = t_n.tv_sec * 1000 + t_n.tv_nsec / 1000000;
18311831

18321832
if (now_time_ms >= end_time_ms) {
18331833
goto epoll_exit;
@@ -1836,7 +1836,7 @@ ff_hook_epoll_wait(int epfd, struct epoll_event *events,
18361836

18371837
goto retry;
18381838
}
1839-
}while(true);
1839+
} while(true);
18401840

18411841
epoll_exit:
18421842
if (likely(ret > 0)) {

0 commit comments

Comments
 (0)