threads parameter in config

This commit is contained in:
Alexey Lavrenuke (load testing) 2013-09-11 16:50:06 +04:00
parent e770856423
commit a378c9a556
2 changed files with 4 additions and 0 deletions

View File

@ -55,6 +55,7 @@ class BFGPlugin(AbstractPlugin):
self.bfg = BFG(
gun=self.gun,
instances=self.get_option("instances", '15'),
threads=self.get_option("threads", '10'),
stpd_filename=self.stepper_wrapper.stpd,
cached_stpd=cached_stpd,
)

View File

@ -11,6 +11,7 @@ class BFG(object):
self,
gun,
instances,
threads,
stpd_filename,
cached_stpd=False,
):
@ -20,6 +21,7 @@ class BFG(object):
self.gun = gun
self.stpd_filename = stpd_filename
self.instances = int(instances)
self.threads = int(threads)
self.results = None
self.worker = None
self.cached_stpd = cached_stpd
@ -49,6 +51,7 @@ class BFG(object):
self.gun,
results,
stpd_filename=self.stpd_filename,
threads=self.threads,
instances=self.instances,
cached_stpd=self.cached_stpd,
)