Skip to content

Commit

Permalink
Fix thread yield
Browse files Browse the repository at this point in the history
  • Loading branch information
momo5502 committed Oct 21, 2024
1 parent 74e8c3a commit 4b2adb0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/windows-emulator/syscall_utils.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ inline std::chrono::steady_clock::time_point convert_delay_interval_to_time_poin
constexpr auto HUNDRED_NANOSECONDS_IN_ONE_SECOND = 10000000LL;
constexpr auto EPOCH_DIFFERENCE_1601_TO_1970_SECONDS = 11644473600LL;

if (delay_interval.QuadPart < 0)
if (delay_interval.QuadPart <= 0)
{
const auto relative_time = -delay_interval.QuadPart;
const auto relative_ticks_in_ms = relative_time / 10;
Expand Down

0 comments on commit 4b2adb0

Please sign in to comment.