fixed bug in time_delta calculation for scheduling jobs; changed int to float.
This commit is contained in:
parent
827f3765ea
commit
d07386aad3
1 changed files with 1 additions and 1 deletions
|
|
@ -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,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue