You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@camel.apache.org by da...@apache.org on 2022/08/29 14:42:04 UTC

[camel] branch main updated: CAMEL-18425: camel-cli - Display more information for top commands.

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 49e6f99d7bc CAMEL-18425: camel-cli - Display more information for top commands.
49e6f99d7bc is described below

commit 49e6f99d7bcc5f76df4806dc8ac9eee62e999476
Author: Claus Ibsen <cl...@gmail.com>
AuthorDate: Mon Aug 29 16:41:41 2022 +0200

    CAMEL-18425: camel-cli - Display more information for top commands.
---
 .../camel/dsl/jbang/core/commands/process/CamelContextTop.java      | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

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 2c51d4acfa5..cb0176af244 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
@@ -112,8 +112,10 @@ public class CamelContextTop extends ProcessBaseCommand {
                     new Column().header("AGE").headerAlign(HorizontalAlign.CENTER).with(r -> r.ago),
                     new Column().header("HEAP").headerAlign(HorizontalAlign.CENTER).with(this::getHeapMemory),
                     new Column().header("NON-HEAP").headerAlign(HorizontalAlign.CENTER).with(this::getNonHeapMemory),
-                    new Column().header("GC").headerAlign(HorizontalAlign.CENTER).with(this::getGC),
-                    new Column().header("THREADS").headerAlign(HorizontalAlign.CENTER).with(this::getThreads),
+                    new Column().header("GC").headerAlign(HorizontalAlign.CENTER).dataAlign(HorizontalAlign.LEFT)
+                            .with(this::getGC),
+                    new Column().header("THREADS").headerAlign(HorizontalAlign.CENTER).dataAlign(HorizontalAlign.CENTER)
+                            .with(this::getThreads),
                     new Column().header("CLASSES").headerAlign(HorizontalAlign.CENTER).with(this::getClassLoading))));
         }