From 650549974eb23461ecaf70acf0110a148b0dde70 Mon Sep 17 00:00:00 2001 From: imarom Date: Tue, 17 Nov 2015 11:22:25 +0200 Subject: minor bug in wait cmd --- scripts/automation/trex_control_plane/client/trex_stateless_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts') 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) -- cgit 1.2.3-korg