moved the sleep to the right place... :) faster startup!
This commit is contained in:
parent
3642e67013
commit
cf27fdccd8
1 changed files with 2 additions and 2 deletions
|
|
@ -49,7 +49,6 @@ class Linspector(threading.Thread):
|
||||||
for service in hostgroup.get_services():
|
for service in hostgroup.get_services():
|
||||||
for host in hostgroup.get_hosts():
|
for host in hostgroup.get_hosts():
|
||||||
for period in service.get_periods():
|
for period in service.get_periods():
|
||||||
time.sleep(3)
|
|
||||||
job = Job(service,
|
job = Job(service,
|
||||||
host,
|
host,
|
||||||
hostgroup.get_members(),
|
hostgroup.get_members(),
|
||||||
|
|
@ -62,3 +61,4 @@ class Linspector(threading.Thread):
|
||||||
job.set_logger(self.log)
|
job.set_logger(self.log)
|
||||||
jobs.append(job)
|
jobs.append(job)
|
||||||
self.q.put(jobs)
|
self.q.put(jobs)
|
||||||
|
time.sleep(3)
|
||||||
Loading…
Add table
Add a link
Reference in a new issue