moved the sleep to the right place... :) faster startup!

This commit is contained in:
Johannes Findeisen 2013-10-25 15:22:02 +02:00
commit cf27fdccd8

View file

@ -49,7 +49,6 @@ class Linspector(threading.Thread):
for service in hostgroup.get_services():
for host in hostgroup.get_hosts():
for period in service.get_periods():
time.sleep(3)
job = Job(service,
host,
hostgroup.get_members(),
@ -61,4 +60,5 @@ class Linspector(threading.Thread):
job.set_job(schedulerJob)
job.set_logger(self.log)
jobs.append(job)
self.q.put(jobs)
self.q.put(jobs)
time.sleep(3)