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 5334c7647ca3 CAMEL-23865: Use K suffix for high throughput rates in TUI
5334c7647ca3 is described below

commit 5334c7647ca368e6fef6ffcb87de4d7fc86eae77
Author: Claus Ibsen <[email protected]>
AuthorDate: Wed Jul 15 10:46:32 2026 +0200

    CAMEL-23865: Use K suffix for high throughput rates in TUI
    
    Co-Authored-By: Claude Opus 4.6 <[email protected]>
    Signed-off-by: Claus Ibsen <[email protected]>
---
 .../apache/camel/dsl/jbang/core/commands/tui/MetricsCollector.java    | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git 
a/dsl/camel-jbang/camel-jbang-plugin-tui/src/main/java/org/apache/camel/dsl/jbang/core/commands/tui/MetricsCollector.java
 
b/dsl/camel-jbang/camel-jbang-plugin-tui/src/main/java/org/apache/camel/dsl/jbang/core/commands/tui/MetricsCollector.java
index 8816bef0ca36..bd7c71d8496c 100644
--- 
a/dsl/camel-jbang/camel-jbang-plugin-tui/src/main/java/org/apache/camel/dsl/jbang/core/commands/tui/MetricsCollector.java
+++ 
b/dsl/camel-jbang/camel-jbang-plugin-tui/src/main/java/org/apache/camel/dsl/jbang/core/commands/tui/MetricsCollector.java
@@ -469,7 +469,9 @@ class MetricsCollector {
      */
     static String formatThroughput(long scaledValue) {
         double v = scaledValue / (double) THROUGHPUT_SCALE;
-        if (v >= 10) {
+        if (v >= 10_000) {
+            return Math.round(v / 1_000) + "K";
+        } else if (v >= 10) {
             return String.valueOf(Math.round(v));
         } else if (v >= 1) {
             return String.format(Locale.US, "%.1f", v);

Reply via email to