diff options
author | Kerim Gokarslan <kgokarsl@cisco.com> | 2017-09-20 15:35:34 -0700 |
---|---|---|
committer | ahothan <ahothan@cisco.com> | 2017-10-20 00:37:13 -0700 |
commit | 580dcb07fce694295be416a4dd4162d3be02c357 (patch) | |
tree | 412c47be137179707f0e168bf22b747df6595b26 | |
parent | fa7805aab1541cd28da746cccbd90942a223f035 (diff) |
NFVBENCH-30 check_traffic_time_sec not working as expected
Change-Id: I7d82b6b3c95df0ad5e1b95cb35e8f84d00717a3a
Signed-off-by: Kerim Gokarslan <kgokarsl@cisco.com>
-rw-r--r-- | nfvbench/traffic_client.py | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/nfvbench/traffic_client.py b/nfvbench/traffic_client.py index 4337ad3..7542d0b 100644 --- a/nfvbench/traffic_client.py +++ b/nfvbench/traffic_client.py @@ -419,12 +419,13 @@ class TrafficClient(object): # ensures enough traffic is coming back threshold = (self.config.service_chain_count - 1) / float(self.config.service_chain_count) - - for it in xrange(self.config.generic_retry_count): + retry_count = (self.config.check_traffic_time_sec + + self.config.generic_poll_sec - 1) / self.config.generic_poll_sec + for it in xrange(retry_count): self.gen.clear_stats() self.gen.start_traffic() LOG.info('Waiting for packets to be received back... ({} / {})'.format(it + 1, - self.config.generic_retry_count)) + retry_count)) time.sleep(self.config.generic_poll_sec) self.gen.stop_traffic() stats = self.gen.get_stats() |