From bf74340779861b1108d7e671d4d75052975ba35f Mon Sep 17 00:00:00 2001 From: Jean-Roland Date: Thu, 4 Jan 2024 17:02:22 +0100 Subject: [PATCH] fix: switch scout timeout to z_clock --- src/session/scout.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/session/scout.c b/src/session/scout.c index 689dd8a53..efdd80938 100644 --- a/src/session/scout.c +++ b/src/session/scout.c @@ -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);