summaryrefslogtreecommitdiff
path: root/source4/torture/nbench
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2006-10-30 00:17:16 +0000
committerGerald (Jerry) Carter <jerry@samba.org>2007-10-10 14:24:42 -0500
commit108de297a7b576b624d5471c116ad6c734c63e14 (patch)
treeea413297bf39a3f0bd135ecc6fb532ba6234c719 /source4/torture/nbench
parent72b164d2e94a73d4d1231b7d0b44ed400d2d8470 (diff)
downloadsamba-108de297a7b576b624d5471c116ad6c734c63e14.tar.gz
samba-108de297a7b576b624d5471c116ad6c734c63e14.tar.bz2
samba-108de297a7b576b624d5471c116ad6c734c63e14.zip
r19510: Make smbtorture's `nprocs' parameter a parametric option.
(This used to be commit f5d6b3ca29788d171d53822a26295ae895a5ed8f)
Diffstat (limited to 'source4/torture/nbench')
-rw-r--r--source4/torture/nbench/nbench.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/source4/torture/nbench/nbench.c b/source4/torture/nbench/nbench.c
index a9ff8e5507..2bd42940a0 100644
--- a/source4/torture/nbench/nbench.c
+++ b/source4/torture/nbench/nbench.c
@@ -38,7 +38,7 @@ static const char *loadfile;
/* run a test that simulates an approximate netbench client load */
static BOOL run_netbench(struct torture_context *tctx, struct smbcli_state *cli, int client)
{
- extern int torture_nprocs;
+ int torture_nprocs = lp_parm_int(-1, "torture", "nprocs", 4);
int i;
pstring line;
char *cname;
@@ -171,7 +171,7 @@ done:
BOOL torture_nbench(struct torture_context *torture)
{
BOOL correct = True;
- extern int torture_nprocs;
+ int torture_nprocs = lp_parm_int(-1, "torture", "nprocs", 4);
struct smbcli_state *cli;
const char *p;