enable to register jobs without subjobs
authorMiloš Mulač <mulac@civ.zcu.cz>
Thu, 17 Apr 2008 08:15:01 +0000 (08:15 +0000)
committerMiloš Mulač <mulac@civ.zcu.cz>
Thu, 17 Apr 2008 08:15:01 +0000 (08:15 +0000)
org.glite.lb.client/examples/stresslog.c

index 9dc276c..506c62f 100644 (file)
@@ -67,7 +67,7 @@ int main(int argc, char *argv[])
                exit(1);
        }
 
-       if ((njobs <= 0) || (num_subjobs <= 0)) {
+       if ((njobs <= 0) || (num_subjobs < 0)) {
                fprintf(stderr,"%s: wrong number of jobs\n",me);
                usage();
                exit(1);