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

Commit

Permalink
Merge pull request #58 from vrdel/devel
Browse files Browse the repository at this point in the history
ARGO-1271 Publisher probe should display queried time interval on result
  • Loading branch information
vrdel authored Oct 29, 2018
2 parents 54b3fef + ea9de97 commit ca1225e
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 ca1225e

Please sign in to comment.