summaryrefslogtreecommitdiffstats
path: root/VNFs/DPPD-PROX/helper-scripts
diff options
context:
space:
mode:
authorProvoost <luc.provoost@intel.com>2019-07-01 11:21:00 -0400
committerLuc Provoost <luc.provoost@intel.com>2019-07-01 12:30:07 -0400
commit1b650efa968fa10a5fed1ecd8bd5ca5a7cb46660 (patch)
tree262ae5834e62e4bf2c3e248d534b5a3f0f157b6c /VNFs/DPPD-PROX/helper-scripts
parentccae9496c217020455acfe337aaf2b2f0c5644d8 (diff)
Cosmetic change when printing warnings
Warnings can be printed in the following cases: - When not enough packets are taken into account for measuring packet latency accuracy. - When there us a potential network throughput issue, meaning the generator is generating more packets than the the NIC can handle - When the generator cannot generate the requested load If there are no warnings for a certain measurement, nothing gets printed, suppressing an empty line Change-Id: Iee07c12142e28dcc0ac406bfed7626731ab08f98 Signed-off-by: Luc Provoost <luc.provoost@intel.com>
Diffstat (limited to 'VNFs/DPPD-PROX/helper-scripts')
-rwxr-xr-xVNFs/DPPD-PROX/helper-scripts/rapid/runrapid.py4
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: