fixed bug in time_delta calculation for scheduling jobs; changed int to float.

This commit is contained in:
Johannes Findeisen 2013-11-04 02:10:02 +01:00
commit d07386aad3

View file

@ -129,7 +129,7 @@ def main():
for service in hostgroup.get_services():
for host in hostgroup.get_hosts():
for period in service.get_periods():
time_delta += int(args.delay)
time_delta += float(args.delay)
new_start_date = start_date + datetime.timedelta(seconds=time_delta)
job = Job(service,
host,