Skip to content
This repository has been archived by the owner on Aug 30, 2022. It is now read-only.

Commit

Permalink
multiply minutes to have correct check for past time
Browse files Browse the repository at this point in the history
  • Loading branch information
vrdel committed Oct 29, 2018
1 parent 4fe310c commit ea9de97
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions modules/amspub_check.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,9 +74,9 @@ def main():

intervals = extract_intervals(arguments.query)
now = int(time.time())
if now - starttime < max(intervals):
if now - starttime < 60 * max(intervals):
nr.setCode(1)
nr.writeWarningMessage('No results yet, ams-publisher is not running for %d minutes' % max)
nr.writeWarningMessage('No results yet, ams-publisher is not running for %d minutes' % max(intervals))
print nr.getMsg()
raise SystemExit(nr.getCode())

Expand Down

0 comments on commit ea9de97

Please sign in to comment.