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
commit 9779a50ed0361115d4be4f4828250c0e97297560 Author: Claus Ibsen <[email protected]> AuthorDate: Sun Sep 25 11:21:09 2022 +0200 camel-jbang - Polished --- .../apache/camel/dsl/jbang/core/commands/action/CamelSourceTop.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/action/CamelSourceTop.java b/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/action/CamelSourceTop.java index 2a71f09b672..720ed9dd6f0 100644 --- a/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/action/CamelSourceTop.java +++ b/dsl/camel-jbang/camel-jbang-core/src/main/java/org/apache/camel/dsl/jbang/core/commands/action/CamelSourceTop.java @@ -101,8 +101,11 @@ public class CamelSourceTop extends ActionBaseCommand { Object last = stats.get("lastProcessingTime"); if (last != null) { row.last = last.toString(); + if ("-1".equals(row.last)) { + row.last = null; + } } else { - row.last = ""; + row.last = null; } } List<JsonObject> lines = o.getCollection("code");
