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

davsclaus pushed a commit to branch man
in repository https://gitbox.apache.org/repos/asf/camel.git


The following commit(s) were added to refs/heads/man by this push:
     new f7adf52e4fa CAMEL-22285: platform-http-main - Dev consoles should be 
registered as management endpoints
f7adf52e4fa is described below

commit f7adf52e4fabdc68ff597155deaf5ada2ceb7a61
Author: Claus Ibsen <[email protected]>
AuthorDate: Tue Jul 29 22:22:09 2025 +0200

    CAMEL-22285: platform-http-main - Dev consoles should be registered as 
management endpoints
---
 .../org/apache/camel/dsl/jbang/core/commands/process/ListMetric.java   | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git 
a/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/process/ListMetric.java
 
b/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/process/ListMetric.java
index 66c891eeca4..7c2212c0513 100644
--- 
a/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/process/ListMetric.java
+++ 
b/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/process/ListMetric.java
@@ -156,8 +156,7 @@ public class ListMetric extends ProcessWatchCommand {
                                     row.metricDescription = 
jo.getString("description");
                                     row.metricId = extractId(jo);
                                     row.tags = extractTags(jo);
-                                    row.count = 0;
-                                    row.count = jo.getDoubleOrDefault("value", 
0);
+                                    row.count = jo.getDouble("value");
 
                                     if (custom && 
row.metricName.startsWith("Camel")) {
                                         continue; // skip internal camel 
metrics

Reply via email to