samples: net: zperf: Refactor because of timeout overhaul
Convert to use k_timeout_t Signed-off-by: Jukka Rissanen <jukka.rissanen@linux.intel.com>
This commit is contained in:
parent
92e8422a40
commit
88d1d43842
1 changed files with 6 additions and 4 deletions
|
@ -793,9 +793,10 @@ static int shell_cmd_upload(const struct shell *shell, size_t argc,
|
|||
}
|
||||
|
||||
if (argc > 3) {
|
||||
duration_in_ms = K_SECONDS(strtoul(argv[start + 3], NULL, 10));
|
||||
duration_in_ms = MSEC_PER_SEC * strtoul(argv[start + 3],
|
||||
NULL, 10);
|
||||
} else {
|
||||
duration_in_ms = K_SECONDS(1);
|
||||
duration_in_ms = MSEC_PER_SEC * 1;
|
||||
}
|
||||
|
||||
if (argc > 4) {
|
||||
|
@ -912,9 +913,10 @@ static int shell_cmd_upload2(const struct shell *shell, size_t argc,
|
|||
}
|
||||
|
||||
if (argc > 2) {
|
||||
duration_in_ms = K_SECONDS(strtoul(argv[start + 2], NULL, 10));
|
||||
duration_in_ms = MSEC_PER_SEC * strtoul(argv[start + 2],
|
||||
NULL, 10);
|
||||
} else {
|
||||
duration_in_ms = K_SECONDS(1);
|
||||
duration_in_ms = MSEC_PER_SEC * 1;
|
||||
}
|
||||
|
||||
if (argc > 3) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue