diff options
author | imarom <imarom@cisco.com> | 2015-11-17 11:22:25 +0200 |
---|---|---|
committer | imarom <imarom@cisco.com> | 2015-11-17 11:22:25 +0200 |
commit | 650549974eb23461ecaf70acf0110a148b0dde70 (patch) | |
tree | a6cebd71c14ba83b0c6c0c29496fd5494fa9bc22 /scripts | |
parent | d16ebf0b67ae8e339fd9367c313a786a8172b1b0 (diff) |
minor bug in wait cmd
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/automation/trex_control_plane/client/trex_stateless_client.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/automation/trex_control_plane/client/trex_stateless_client.py b/scripts/automation/trex_control_plane/client/trex_stateless_client.py index 4478ed3f..db4199c6 100755 --- a/scripts/automation/trex_control_plane/client/trex_stateless_client.py +++ b/scripts/automation/trex_control_plane/client/trex_stateless_client.py @@ -793,7 +793,7 @@ class CTRexStatelessClient(object): if opts is None: return RC_ERR("bad command line paramters") - delay_sec = opts.d if opts.d else 1 + delay_sec = opts.duration if (opts.duration > 0) else 1 print format_text("Waiting for {0} seconds...\n".format(delay_sec), 'bold') time.sleep(delay_sec) |