bug fix: epochs, process control (generator)

This commit is contained in:
Steve Nyemba 2020-03-26 23:40:09 -05:00
parent 6e0f89cd3c
commit 205adf8fa6
1 changed files with 2 additions and 0 deletions

View File

@ -327,6 +327,8 @@ if __name__ == '__main__' :
job.name = 'generator # '+str(index) job.name = 'generator # '+str(index)
job.start() job.start()
jobs.append(job) jobs.append(job)
if len(jobs) == 1 :
job.join()
print (["Started ",len(jobs),"generators" if len(jobs)>1 else "generator" ]) print (["Started ",len(jobs),"generators" if len(jobs)>1 else "generator" ])
while len(jobs)> 0 : while len(jobs)> 0 :