Skip to content

Commit

Permalink
Merge pull request #966 from tempesta-tech/vlad-fix-wrk
Browse files Browse the repository at this point in the history
fix wrk command
  • Loading branch information
vladtcvs authored Mar 19, 2018
2 parents 03f35c0 + 419e555 commit 43e35e9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tempesta_fw/t/functional/helpers/control.py
Original file line number Diff line number Diff line change
Expand Up @@ -162,6 +162,8 @@ def form_command(self):
# count for remote node.
if self.threads == -1:
self.threads = remote.get_max_thread_count(self.node)
if self.threads > self.connections:
self.threads = self.connections
threads = self.threads if self.connections > 1 else 1
self.options.append('-t %d' % threads)
self.options.append('-c %d' % self.connections)
Expand Down

0 comments on commit 43e35e9

Please sign in to comment.