diff options
Diffstat (limited to 'VNFs')
-rwxr-xr-x | VNFs/DPPD-PROX/helper-scripts/rapid/runrapid.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/VNFs/DPPD-PROX/helper-scripts/rapid/runrapid.py b/VNFs/DPPD-PROX/helper-scripts/rapid/runrapid.py index 159550ca..8964f2de 100755 --- a/VNFs/DPPD-PROX/helper-scripts/rapid/runrapid.py +++ b/VNFs/DPPD-PROX/helper-scripts/rapid/runrapid.py @@ -326,6 +326,7 @@ def run_flow_size_test(gensock,sutsock): minspeed = 0 while (maxspeed-minspeed > ACCURACY): attempts += 1 + endwarning ='' print(str(flow_number)+' flows: Measurement ongoing at speed: ' + str(round(speed,2)) + '% ',end='\r') sys.stdout.flush() # Start generating packets at requested speed (in % of a 10Gb/s link) @@ -361,7 +362,8 @@ def run_flow_size_test(gensock,sutsock): endlat_max = lat_max endabs_dropped = abs_dropped enddrop_rate = drop_rate - endwarning = '| |' + lat_warning + gen_warning + if lat_warning or gen_warning: + endwarning = '| | {:167.167} |'.format(lat_warning + gen_warning) success = True success_message='% | SUCCESS' else: |