This is an automated email from the ASF dual-hosted git repository.

jamesnetherton pushed a commit to branch camel-quarkus-main
in repository https://gitbox.apache.org/repos/asf/camel-quarkus-examples.git


The following commit(s) were added to refs/heads/camel-quarkus-main by this 
push:
     new f03efff  Adjust observability example uptime health check for Camel 
4.5.0
f03efff is described below

commit f03efff2b5073f109fe8f80e2dfb958105672513
Author: James Netherton <jamesnether...@gmail.com>
AuthorDate: Thu Mar 28 10:55:31 2024 +0000

    Adjust observability example uptime health check for Camel 4.5.0
---
 .../acme/observability/health/microprofile/CamelUptimeHealthCheck.java  | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 
a/observability/src/main/java/org/acme/observability/health/microprofile/CamelUptimeHealthCheck.java
 
b/observability/src/main/java/org/acme/observability/health/microprofile/CamelUptimeHealthCheck.java
index 292ff87..ece2b37 100644
--- 
a/observability/src/main/java/org/acme/observability/health/microprofile/CamelUptimeHealthCheck.java
+++ 
b/observability/src/main/java/org/acme/observability/health/microprofile/CamelUptimeHealthCheck.java
@@ -38,7 +38,7 @@ public class CamelUptimeHealthCheck implements HealthCheck {
     public HealthCheckResponse call() {
         HealthCheckResponseBuilder builder = HealthCheckResponse.named("Uptime 
readiness check");
 
-        if (camelContext.getUptimeMillis() > 0) {
+        if (camelContext.getUptime().toMillis() > 0) {
             builder.up();
         } else {
             builder.down();

Reply via email to