summaryrefslogtreecommitdiff
path: root/source4/torture/raw
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/raw
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/raw')
-rw-r--r--source4/torture/raw/oplock.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/torture/raw/oplock.c b/source4/torture/raw/oplock.c
index 98744e0ec2..f2e894a6eb 100644
--- a/source4/torture/raw/oplock.c
+++ b/source4/torture/raw/oplock.c
@@ -767,7 +767,7 @@ BOOL torture_bench_oplock(struct torture_context *torture)
struct smbcli_state **cli;
BOOL ret = True;
TALLOC_CTX *mem_ctx = talloc_new(torture);
- extern int torture_nprocs;
+ int torture_nprocs = lp_parm_int(-1, "torture", "nprocs", 4);
int i, count=0;
int timelimit = torture_setting_int(torture, "timelimit", 10);
union smb_open io;