This is an automated email from the ASF dual-hosted git repository.
davsclaus pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/camel.git
The following commit(s) were added to refs/heads/main by this push:
new e8afc395269 CAMEL-18425: camel-cli - Display more information for top
commands.
e8afc395269 is described below
commit e8afc3952699c1311451ab884046d1a31df0bd52
Author: Claus Ibsen <[email protected]>
AuthorDate: Mon Aug 29 16:59:41 2022 +0200
CAMEL-18425: camel-cli - Display more information for top commands.
---
.../apache/camel/dsl/jbang/core/commands/process/CamelContextTop.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/process/CamelContextTop.java
b/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/process/CamelContextTop.java
index cb0176af244..6c708d6395e 100644
---
a/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/process/CamelContextTop.java
+++
b/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/process/CamelContextTop.java
@@ -178,7 +178,7 @@ public class CamelContextTop extends ProcessBaseCommand {
if (r.gcTime <= 0) {
return "";
} else {
- return r.gcTime + "ms (" + r.gcCount + ")";
+ return String.format("%s (%d)", TimeUtils.printDuration(r.gcTime,
true), r.gcCount);
}
}