From 108de297a7b576b624d5471c116ad6c734c63e14 Mon Sep 17 00:00:00 2001 From: Jelmer Vernooij Date: Mon, 30 Oct 2006 00:17:16 +0000 Subject: r19510: Make smbtorture's `nprocs' parameter a parametric option. (This used to be commit f5d6b3ca29788d171d53822a26295ae895a5ed8f) --- source4/torture/raw/oplock.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'source4/torture/raw') 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; -- cgit