diff --git a/packages/hawtio/src/plugins/camel/route-diagram/RouteDiagram.tsx b/packages/hawtio/src/plugins/camel/route-diagram/RouteDiagram.tsx index 095d3fdb..79af7174 100644 --- a/packages/hawtio/src/plugins/camel/route-diagram/RouteDiagram.tsx +++ b/packages/hawtio/src/plugins/camel/route-diagram/RouteDiagram.tsx @@ -147,6 +147,9 @@ const CamelNode: React.FunctionComponent> = ({ return newLabel.substring(0, 17) + '...' } + const totalExchanges: number = + parseInt(data.stats?.exchangesCompleted ?? '0') + parseInt(data.stats?.exchangesInflight ?? '0') + return (
> = ({
{annotation?.element}
{data.imageUrl}
{showInflightCounter && data.stats?.exchangesInflight}
-
{data.stats?.exchangesCompleted}
+
{totalExchanges}
{truncate(data.label)}
{data.cid &&
(ID: {data.cid})
} {showStatistics && ( @@ -177,6 +180,10 @@ const CamelNode: React.FunctionComponent> = ({ ID {data.stats.id} + + Total + {totalExchanges} + Completed {data.stats?.exchangesCompleted}