davsclaus opened a new pull request, #24356:
URL: https://github.com/apache/camel/pull/24356

   ## Summary
   
   - Use EWMA (Exponentially Weighted Moving Average) smoothing in 
`LoadThroughput` so throughput converges to the true average rate instead of 
oscillating between 0 and 1 for sub-1 msg/s rates (e.g., a 5-second timer now 
shows ~0.20 msg/s)
   - Scale throughput values by 100 in TUI `MetricsCollector` so fractional 
rates are preserved as longs
   - Apply 1-2-5 step sequence (`niceMax`) for Y-axis scaling in both 
`OverviewTab` and `EndpointsTab` sparkline charts
   - Use `Locale.US` for consistent dot decimal formatting (avoids 
locale-dependent comma separators)
   - Add `LoadThroughputTest` with tests for initial value, convergence, 
smoothing bounds, and reset
   
   ## Test plan
   
   - [x] `LoadThroughputTest` — 4 tests covering zero init, steady-state 
convergence, smoothing bounds, and reset
   - [ ] Manual: run `camel tui monitor` with a timer route (e.g., 
`timer:foo?period=5000`) and verify the Overview and Endpoints sparkline charts 
show smooth ~0.20 msg/s throughput instead of 0/1 oscillation
   
   _Claude Code on behalf of Claus Ibsen_
   
   🤖 Generated with [Claude Code](https://claude.com/claude-code)


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to