this really is more balanced scheduling of jobs

This commit is contained in:
Johannes Findeisen 2013-10-27 00:54:17 +02:00
commit 96a0ff22ab

View file

@ -51,7 +51,7 @@ 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_delta += 2 time_delta += 2.315379
new_start_date = start_date + datetime.timedelta(seconds=time_delta) new_start_date = start_date + datetime.timedelta(seconds=time_delta)
job = Job(service, job = Job(service,
host, host,