diff options
author | Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com> | 2018-08-31 10:43:26 +0100 |
---|---|---|
committer | Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com> | 2018-08-31 11:37:37 +0100 |
commit | 102b603cf5ea3627381a84822890ad2d7879aeba (patch) | |
tree | a3bce1f2d6f38d852e7f2bfb99db9af0d9c29aea /yardstick/network_services/traffic_profile/rfc2544.py | |
parent | a8706c3b18f7f70798a0b20b1ec15ad496626784 (diff) |
TRex IMIX data must return percentage value
Function "_create_imix_data" must return the weight in percentage, not in
absolute value.
JIRA: YARDSTICK-1406
Change-Id: I3bc409bab17ae5778a6783f4319699009a5437fa
Signed-off-by: Rodolfo Alonso Hernandez <rodolfo.alonso.hernandez@intel.com>
Diffstat (limited to 'yardstick/network_services/traffic_profile/rfc2544.py')
-rw-r--r-- | yardstick/network_services/traffic_profile/rfc2544.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/yardstick/network_services/traffic_profile/rfc2544.py b/yardstick/network_services/traffic_profile/rfc2544.py index 4b339c2ed..e33c437c9 100644 --- a/yardstick/network_services/traffic_profile/rfc2544.py +++ b/yardstick/network_services/traffic_profile/rfc2544.py @@ -197,7 +197,7 @@ class RFC2544Profile(trex_traffic_profile.TrexProfile): byte_total = sum([int(size) * weight for size, weight in imix_dip.items()]) - return {size: (int(size) * weight) / byte_total + return {size: (int(size) * weight * 100) / byte_total for size, weight in imix_dip.items()} def _create_vm(self, packet_definition): |