diff options
author | 2016-05-22 16:03:18 +0300 | |
---|---|---|
committer | 2016-05-22 16:03:18 +0300 | |
commit | 9f266bd7202556cb6d83913282a0b410c1ff42d4 (patch) | |
tree | 3e3e3f40ebe84018d65aac5a03c3c4b6176979d8 /scripts/automation/trex_control_plane/stl/examples | |
parent | 0e69ec7a8c24849b9b383efcb2cdf91138ddd604 (diff) |
Added min latency calc in Python
Diffstat (limited to 'scripts/automation/trex_control_plane/stl/examples')
-rw-r--r-- | scripts/automation/trex_control_plane/stl/examples/stl_flow_latency_stats.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/automation/trex_control_plane/stl/examples/stl_flow_latency_stats.py b/scripts/automation/trex_control_plane/stl/examples/stl_flow_latency_stats.py index ea0ba221..df0605bf 100644 --- a/scripts/automation/trex_control_plane/stl/examples/stl_flow_latency_stats.py +++ b/scripts/automation/trex_control_plane/stl/examples/stl_flow_latency_stats.py @@ -78,6 +78,7 @@ def rx_iteration (c, tx_port, rx_port, total_pkts, pkt_len, bw): jitter = lat['jitter'] avg = lat['average'] tot_max = lat['total_max'] + tot_min = lat['total_min'] last_max = lat['last_max'] hist = lat ['histogram'] @@ -90,6 +91,7 @@ def rx_iteration (c, tx_port, rx_port, total_pkts, pkt_len, bw): print('Error counters: dropped:{0}, ooo:{1} dup:{2} seq too high:{3} seq too low:{4}'.format(drops, ooo, dup, sth, stl)) print('Latency info:') print(" Maximum latency(usec): {0}".format(tot_max)) + print(" Minimum latency(usec): {0}".format(tot_min)) print(" Maximum latency in last sampling period (usec): {0}".format(last_max)) print(" Average latency(usec): {0}".format(avg)) print(" Jitter(usec): {0}".format(jitter)) |