diff options
author | Mytnyk, Volodymyr <volodymyrx.mytnyk@intel.com> | 2018-08-13 11:00:00 +0100 |
---|---|---|
committer | Mytnyk, Volodymyr <volodymyrx.mytnyk@intel.com> | 2018-08-16 11:36:45 +0100 |
commit | 30bb35b84c417fe6ef15deccea780431adb815de (patch) | |
tree | ba92b4cc7f2534e0e46791c29f65a07b629995a9 /yardstick/network_services/vnf_generic/vnf | |
parent | 27419ca8e790aa5105dda11b013636c5d1ad8e18 (diff) |
Improve IXIA TG Rx/TX throughput calculation
Use float instead of integer to convert TG throughtput
IXIA statistic.
JIRA: YARDSTICK-1378
Change-Id: I39bd143adc4b10035c6f0986a06d407a18aa0887
Signed-off-by: Mytnyk, Volodymyr <volodymyrx.mytnyk@intel.com>
Diffstat (limited to 'yardstick/network_services/vnf_generic/vnf')
-rw-r--r-- | yardstick/network_services/vnf_generic/vnf/tg_rfc2544_ixia.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/yardstick/network_services/vnf_generic/vnf/tg_rfc2544_ixia.py b/yardstick/network_services/vnf_generic/vnf/tg_rfc2544_ixia.py index 5203ffd9c..2b04c864c 100644 --- a/yardstick/network_services/vnf_generic/vnf/tg_rfc2544_ixia.py +++ b/yardstick/network_services/vnf_generic/vnf/tg_rfc2544_ixia.py @@ -78,8 +78,8 @@ class IxiaResourceHelper(ClientResourceHelper): "tx_throughput_mbps": float(stats["Tx_Rate_Mbps"][port_num]), "in_packets": int(stats["Valid_Frames_Rx"][port_num]), "out_packets": int(stats["Frames_Tx"][port_num]), - "RxThroughput": int(stats["Valid_Frames_Rx"][port_num]) / duration, - "TxThroughput": int(stats["Frames_Tx"][port_num]) / duration, + "RxThroughput": float(stats["Valid_Frames_Rx"][port_num]) / duration, + "TxThroughput": float(stats["Frames_Tx"][port_num]) / duration, } if key: avg_latency = stats["Store-Forward_Avg_latency_ns"][port_num] |