summaryrefslogtreecommitdiff
path: root/script
diff options
context:
space:
mode:
Diffstat (limited to 'script')
-rwxr-xr-xscript/traffic_replay4
1 files changed, 4 insertions, 0 deletions
diff --git a/script/traffic_replay b/script/traffic_replay
index 0d06d1c861d..77eef7c0322 100755
--- a/script/traffic_replay
+++ b/script/traffic_replay
@@ -235,6 +235,10 @@ def main():
"are incompatible. Use one or the other.")
sys.exit(1)
+ if not opts.scale_traffic and not opts.packets_per_second:
+ logger.info("No packet rate specified. Using --scale-traffic=1.0")
+ opts.scale_traffic = 1.0
+
if opts.timing_data not in ('-', None):
try:
open(opts.timing_data, 'w').close()