From d9cd1b606cf25ce780b7c45439cdb020eab4990c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Milo=C5=A1=20Mula=C4=8D?= Date: Fri, 7 Mar 2008 13:35:53 +0000 Subject: [PATCH] work properly with subjobs --- org.glite.lb.client/examples/stresslog.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/org.glite.lb.client/examples/stresslog.c b/org.glite.lb.client/examples/stresslog.c index 8d3ac5f..efe45b6 100644 --- a/org.glite.lb.client/examples/stresslog.c +++ b/org.glite.lb.client/examples/stresslog.c @@ -29,7 +29,7 @@ int main(int argc, char *argv[]) char *job = NULL,*server = NULL,*seq = NULL,*filename = NULL; char buf[MAXMSGSIZE]; int lbproxy = 0, num_subjobs = 0; - int done = 0, njobs = 1,i; + int done = 0, njobs = 1,i,j; edg_wll_Context ctx; edg_wlc_JobId jobid,*subjobs; FILE *f; @@ -58,7 +58,7 @@ int main(int argc, char *argv[]) exit(1); } - if ((njobs <= 0) || (num_subjobs)) { + if ((njobs <= 0) || (num_subjobs <= 0)) { fprintf(stderr,"%s: wrong number of jobs\n",me); usage(); exit(1); @@ -76,7 +76,7 @@ int main(int argc, char *argv[]) } /* MAIN LOOP */ -for (i = 1; i