From d07386aad3377256d744461618a4b176c1c3f1bf Mon Sep 17 00:00:00 2001 From: Johannes Findeisen Date: Mon, 4 Nov 2013 02:10:02 +0100 Subject: [PATCH] fixed bug in time_delta calculation for scheduling jobs; changed int to float. --- bin/linspector | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bin/linspector b/bin/linspector index c77f2a4..f5d8bf2 100755 --- a/bin/linspector +++ b/bin/linspector @@ -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,