Skip to content
This repository was archived by the owner on May 9, 2018. It is now read-only.

Commit 10c9500

Browse files
committed
Interval should be multiplied by 60 in parens.
1 parent 44d350c commit 10c9500

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

nagmq_notify.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -88,13 +88,16 @@ def check_schedules(schedule):
8888
reqs.send_json({ 'host_name': opts.host, 'keys': keys })
8989
tpo = json.loads(reqs.recv())[0]
9090

91-
if(tpo['last_notification'] + interval * 60 >= time.time()):
91+
if(tpo['last_notification'] + (interval * 60) >= time.time()):
9292
return True
9393
return False
9494

9595
if(failures in opts and not check_failures(opts.failures)):
9696
exit(0)
9797

98+
if(schedule in opts and not check_schedules(opts.schedule)):
99+
exit(0)
100+
98101
msgtxt = None
99102
state = None
100103

0 commit comments

Comments
 (0)