mirror of
https://github.com/apache/nuttx-apps.git
synced 2026-08-08 05:57:19 +00:00
iperf: Make -t0 the default for server mode
It matches the original iperf behavior. Note: -t is a client-only option for the original iperf 2.xx. Note: You can still choose the previous behavior by explictly specifying -t.
This commit is contained in:
parent
b9ad64627d
commit
37bc863eb7
1 changed files with 10 additions and 1 deletions
|
|
@ -204,7 +204,16 @@ int main(int argc, FAR char *argv[])
|
|||
|
||||
if (iperf_args.time->count == 0)
|
||||
{
|
||||
cfg.time = IPERF_DEFAULT_TIME;
|
||||
if (iperf_args.server->count != 0)
|
||||
{
|
||||
/* Note: -t is a client-only option for the original iperf 2. */
|
||||
|
||||
cfg.time = 0;
|
||||
}
|
||||
else
|
||||
{
|
||||
cfg.time = IPERF_DEFAULT_TIME;
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue