Skip to content

Commit

Permalink
memory_wait: simplify a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
yamt committed Jul 7, 2023
1 parent bb52014 commit dded818
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions lib/exec.c
Original file line number Diff line number Diff line change
Expand Up @@ -1658,10 +1658,9 @@ retry:;
goto fail;
}
struct timespec next_abstimeout;
const uint32_t interval_ms = check_interrupt_interval_ms(ctx);
const int64_t interval_ns = (int64_t)interval_ms * 1000000;
ret = abstime_from_reltime_ns(CLOCK_REALTIME, &next_abstimeout,
interval_ns);
const int interval_ms = check_interrupt_interval_ms(ctx);
ret = abstime_from_reltime_ms(CLOCK_REALTIME, &next_abstimeout,
interval_ms);
if (ret != 0) {
goto fail;
}
Expand Down

0 comments on commit dded818

Please sign in to comment.