Fixed a bug in SubmitNext - the number of jobs to be submitted is not 0 anymore.
authoragheata <agheata@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 28 Apr 2010 09:34:54 +0000 (09:34 +0000)
committeragheata <agheata@f7af4fe6-9843-0410-8265-dc069ae4e863>
Wed, 28 Apr 2010 09:34:54 +0000 (09:34 +0000)
ANALYSIS/AliAnalysisAlien.cxx

index 0fa523b..e957acb 100644 (file)
@@ -1923,6 +1923,7 @@ Bool_t AliAnalysisAlien::SubmitNext()
       if (nwaiting>100) {iscalled = kFALSE; return kTRUE;}
       npermaster = (nrunning+nwaiting+nerror+ndone)/fNsubmitted;      
       if (npermaster) ntosubmit = (100-nwaiting)/npermaster;
+      if (!ntosubmit) ntosubmit = 1;
       printf("=== WAITING(%d) RUNNING(%d) DONE(%d) OTHER(%d) NperMaster=%d => to submit %d jobs\n", 
              nwaiting, nrunning, ndone, nerror, npermaster, ntosubmit);
    }