another attempt to fix intermediate failure

This commit is contained in:
Fredrik Eriksson 2019-08-02 07:29:54 +02:00
parent 7a95abc6c0
commit fd942a8d7e
No known key found for this signature in database
GPG Key ID: 8825C73A0FD1502A

View File

@ -216,7 +216,7 @@ def main():
# Failure
if previous_runs:
# Not the first failure...
oldest = datetime.datetime.fromtimestamp(min(previous_runs.values()))
oldest = min(previous_runs.values())
delta = datetime.timedelta(seconds=args.warn_interval)
diff = now-oldest
if diff > delta: