diff options
author | Kerim Gokarslan <kgokarsl@cisco.com> | 2017-09-20 15:35:34 -0700 |
---|---|---|
committer | Kerim Gokarslan <kgokarsl@cisco.com> | 2017-09-20 15:35:34 -0700 |
commit | 34c79fa7279ead3180d4a0096e9bdeaef3907cf2 (patch) | |
tree | 571f2a62422417f318c4efca982cc65bfa5ed581 | |
parent | 2cf11d9c962809f108ada00a5ebf2c866c5e5a7b (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() |