Skip to content
Permalink
Browse files

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>
  • Loading branch information...
jukkar authored and carlescufi committed Aug 7, 2019
1 parent e11be42 commit 1c65789d8561a07f12d0df08f63d5b28e585893b
Showing with 2 additions and 2 deletions.
  1. +1 −1 samples/net/zperf/src/zperf_tcp_uploader.c
  2. +1 −1 samples/net/zperf/src/zperf_udp_uploader.c
@@ -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
@@ -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();

0 comments on commit 1c65789

Please sign in to comment.
You can’t perform that action at this time.