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/nbench/nbench.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source4/torture/nbench') diff --git a/source4/torture/nbench/nbench.c b/source4/torture/nbench/nbench.c index a9ff8e55079..2bd42940a0d 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; -- cgit