lib/sippy_cup/runner.rb in sippy_cup-0.2.0 vs lib/sippy_cup/runner.rb in sippy_cup-0.2.1
- old
+ new
@@ -32,12 +32,13 @@
sip_user = @options[:sip_user] || '1'
command << " -i #{@options[:source]} -p #{source_port} -sf #{File.expand_path @options[:scenario]}"
command << " -l #{@options[:max_concurrent]} -m #{@options[:number_of_calls]} -r #{@options[:calls_per_second]}"
command << " -s #{sip_user}"
if @options[:stats_file]
- stats_interval = @options[:stats_interval] || 10
- command << " -trace_stats -stf #{@options[:stats_file]} -fd #{stats_interval}"
+ stats_interval = @options[:stats_interval] || 1
+ command << " -trace_stat -stf #{@options[:stats_file]} -fd #{stats_interval}"
end
+ command << "#{@options[:destination]}"
command << " > /dev/null 2>&1" unless @options[:full_sipp_output]
command
end
def run