Fix lastFetch status calculation.

Was previously milliseconds/seconds when calculating whether to display the message about reporting failures.
This commit is contained in:
Niklas Herder
2016-09-08 11:24:11 +02:00
parent 9587003d44
commit 62521f38e8

View File

@@ -77,7 +77,7 @@ public class EurekaHealthIndicator implements DiscoveryHealthIndicator {
status = new Status("UP",
"Eureka discovery client has not yet successfully connected to a Eureka server");
}
else if (lastFetch > clientConfig.getRegistryFetchIntervalSeconds() * 2) {
else if (lastFetch > clientConfig.getRegistryFetchIntervalSeconds() * 2000) {
status = new Status("UP",
"Eureka discovery client is reporting failures to connect to a Eureka server");
builder.withDetail("renewalPeriod",