Skip to content

Commit

Permalink
fixes bug
Browse files Browse the repository at this point in the history
  • Loading branch information
actboy168 committed Apr 9, 2024
1 parent eb56375 commit 006e722
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion bee/thread/atomic_semaphore.h
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ namespace bee {
};
FutexTimespec ts;
ts.tv_sec = (long)(timeout / 1000);
ts.tv_nsec = (long)(timeout % 1000 * 1000);
ts.tv_nsec = (long)(timeout % 1000 * 1000 * 1000);
syscall(SYS_futex, ptr, FUTEX_WAIT_PRIVATE, val, &ts, 0, 0);
}
template <typename T>
Expand Down

0 comments on commit 006e722

Please sign in to comment.