samples: net: zperf: Use proper value in k_busy_wait()

The wait time value should be in microseconds.

Fixes #18059

Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
This commit is contained in:
Jukka Rissanen 2019-08-07 09:28:58 +03:00 committed by Carles Cufí
commit 1c65789d85
2 changed files with 2 additions and 2 deletions

View file

@ -85,7 +85,7 @@ void zperf_tcp_upload(const struct shell *shell,
}
#if defined(CONFIG_ARCH_POSIX)
k_busy_wait(K_MSEC(100));
k_busy_wait(K_MSEC(100) * USEC_PER_MSEC);
#else
k_yield();
#endif

View file

@ -259,7 +259,7 @@ void zperf_udp_upload(const struct shell *shell,
/* Wait */
#if defined(CONFIG_ARCH_POSIX)
k_busy_wait(K_MSEC(100));
k_busy_wait(K_MSEC(100) * USEC_PER_MSEC);
#else
while (time_delta(loop_time, k_cycle_get_32()) < delay) {
k_yield();