aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRoss Brattain <ross.b.brattain@intel.com>2017-10-17 15:18:25 +0000
committerGerrit Code Review <gerrit@opnfv.org>2017-10-17 15:18:25 +0000
commit68bc8f16c9df9f6b5647239817892a7ad853df6f (patch)
tree8c7217b450be3ceba747fb9610c01bcbe9ca245f
parentc270be42cde9e26018809fef35e401729be77eb1 (diff)
parent4dc75ed6cfe14f24fd91122da52bc9a9168e84c0 (diff)
Merge "BugFix: Fix to negative dropped packets appearing in results."
-rw-r--r--yardstick/network_services/vnf_generic/vnf/prox_vnf.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/yardstick/network_services/vnf_generic/vnf/prox_vnf.py b/yardstick/network_services/vnf_generic/vnf/prox_vnf.py
index 3bfca19aa..24712dd27 100644
--- a/yardstick/network_services/vnf_generic/vnf/prox_vnf.py
+++ b/yardstick/network_services/vnf_generic/vnf/prox_vnf.py
@@ -90,7 +90,7 @@ class ProxApproxVnf(SampleVNF):
result = {
"packets_in": tx_total,
- "packets_dropped": (tx_total - rx_total),
+ "packets_dropped": abs(rx_total - tx_total),
"packets_fwd": rx_total,
# we share ProxResourceHelper with TG, but we want to collect
# collectd KPIs here and not TG KPIs, so use a different method name