From 4729c90f974bf6b11d9164cdcd819e6238eea08a Mon Sep 17 00:00:00 2001 From: Joe Guo Date: Tue, 15 Jan 2019 11:06:29 +1300 Subject: traffic: rm --scale-traffic default value -S, --scale--traffic defaults to 1.0 when we switch to new option -T, both -T and -S are set, which raise an error: script/traffic_replay #234: --scale-traffic and --packets-per-second are incompatible. Use one or the other. Signed-off-by: Joe Guo Reviewed-by: Garming Sam Reviewed-by: Tim Beale Autobuild-User(master): Tim Beale Autobuild-Date(master): Wed Jan 23 03:09:41 CET 2019 on sn-devel-144 --- script/traffic_replay | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'script/traffic_replay') diff --git a/script/traffic_replay b/script/traffic_replay index 7174d246d3b..fab9a8ded26 100755 --- a/script/traffic_replay +++ b/script/traffic_replay @@ -78,7 +78,7 @@ def main(): model_group = optparse.OptionGroup(parser, 'Traffic Model Options', 'These options alter the traffic ' 'generated by the model') - model_group.add_option('-S', '--scale-traffic', type='float', default=1.0, + model_group.add_option('-S', '--scale-traffic', type='float', help=('Increase the number of conversations by ' 'this factor (or use -T)')) parser.add_option('-T', '--packets-per-second', type=float, -- cgit v1.2.1