Skip to content

Commit c1eea4c

Browse files
committed
Ensure that a TTL of zero is honoured by HealthMvcEndpoint
See gh-2630
1 parent c849a0a commit c1eea4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

spring-boot-actuator/src/main/java/org/springframework/boot/actuate/endpoint/mvc/HealthMvcEndpoint.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -151,7 +151,7 @@ private boolean isCacheStale(long accessTime) {
151151
if (this.cached == null) {
152152
return true;
153153
}
154-
return (accessTime - this.lastAccess) > this.delegate.getTimeToLive();
154+
return (accessTime - this.lastAccess) >= this.delegate.getTimeToLive();
155155
}
156156

157157
private boolean exposeHealthDetails(Principal principal) {

0 commit comments

Comments
 (0)