Merge pull request #1325 from herder/fix_registry_failures_report_time_mismatch

Fix lastFetch status calculation.
This commit is contained in:
Ryan Baxter
2016-09-08 09:38:09 -04:00
committed by GitHub

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",