From fc2daaced5d39bac244d689c4546c1fdbe7538c3 Mon Sep 17 00:00:00 2001 From: Yaroslav Brustinov Date: Thu, 19 May 2016 15:18:19 +0300 Subject: regression: stl_rx_test fix total_packets type to be int --- scripts/automation/regression/stateless_tests/stl_rx_test.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'scripts/automation/regression') diff --git a/scripts/automation/regression/stateless_tests/stl_rx_test.py b/scripts/automation/regression/stateless_tests/stl_rx_test.py index 171512b4..92cb6a39 100644 --- a/scripts/automation/regression/stateless_tests/stl_rx_test.py +++ b/scripts/automation/regression/stateless_tests/stl_rx_test.py @@ -125,7 +125,7 @@ class STLRX_Test(CStlGeneral_Test): def test_multiple_streams(self): num_latency_streams = 110 num_flow_stat_streams = 110 - total_pkts = int(self.total_pkts / num_latency_streams) / 2 + total_pkts = int(self.total_pkts / num_latency_streams / 2) if total_pkts == 0: total_pkts = 1 percent = float(self.rate_percent) / num_latency_streams / 2 -- cgit 1.2.3-korg