Skip to content

Commit

Permalink
fix: switch scout timeout to z_clock
Browse files Browse the repository at this point in the history
  • Loading branch information
jean-roland committed Jan 4, 2024
1 parent 090a964 commit bf74340
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/session/scout.c
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ _z_hello_list_t *__z_scout_loop(const _z_wbuf_t *wbf, const char *locator, unsig
// The receiving buffer
_z_zbuf_t zbf = _z_zbuf_make(Z_BATCH_UNICAST_SIZE);

z_time_t start = z_time_now();
while (z_time_elapsed_ms(&start) < period) {
z_clock_t start = z_clock_now();
while (z_clock_elapsed_ms(&start) < period) {
// Eventually read hello messages
_z_zbuf_reset(&zbf);

Expand Down

0 comments on commit bf74340

Please sign in to comment.