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:
parent
e11be42558
commit
1c65789d85
2 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue