Skip to content

Commit

Permalink
F
Browse files Browse the repository at this point in the history
  • Loading branch information
smortex committed May 31, 2024
1 parent 4343f4f commit 8c2a86f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/riemann/tools/tls_check.rb
Original file line number Diff line number Diff line change
Expand Up @@ -146,11 +146,11 @@ def renewal_duration
end

def expired_or_expire_soon?
now + renewal_duration / 3 > not_after
now + (renewal_duration / 3) > not_after
end

def expire_soonish?
now + 2 * renewal_duration / 3 > not_after
now + (2 * renewal_duration / 3) > not_after
end

def expired?
Expand Down

0 comments on commit 8c2a86f

Please sign in to comment.