Commit 0fe64b27 authored by Olav Kvittem's avatar Olav Kvittem

use jitter ratio to gap

parent 3032e744
......@@ -23,7 +23,7 @@ my $report_host = `hostname -f`;
$span_limit=[0,1,9]; # sec
$bw_limit=[0,2000000, 30000]; # bps
$jitter_limit=[0, 5, 10 ]; # ms
$jitter_limit=[0, 2, 10 ]; # ms
$loss_limit=[0, 0.1, 1 ]; # %
$bb_color=["red", "yellow", "green"];
......@@ -50,8 +50,9 @@ sub process_flow {
if ( $xml){ # successful parsing
foreach $flow ( $xml->{flow}){
my $jratio= $flow->{pcr_jitter}->{pcr_jitter_avg} / $flow->{network_stats}->{gap_avg};
&bb_report("Response", $flow->{flow_name}, bb_color($span_limit, $bb_color, $flow->{span}), $flow->{span} );
&bb_report("Jitter", $flow->{flow_name}, bb_color($jitter_limit, $rev_color, $flow->{pcr_jitter}->{pcr_jitter_avg}),
&bb_report("Jitter", $flow->{flow_name}, bb_color($jitter_limit, $rev_color,$jratio),
$flow->{pcr_jitter}->{pcr_jitter_avg} );
my $loss_rate=0;
if ( $flow->{transport}->{mpeg_packets} > 0){
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment