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

   _Claude Code on behalf of davsclaus_
   
   The ready and live strip of the Health page (#29504) showed a black gap now 
and then, though the integration was ready and live all along.
   
   **Why.** `HealthHistory` keeps a value per wall-clock second, from the reads 
of the TUI, and a second with no read stays blank ("not known"). While a 
diagram is on screen, the TUI reads about once a second (`CamelMonitor`: at 
least 1000 ms then, 500 ms otherwise), checked on the 40 ms tick. So the reads 
are a little over a second apart, drift, and every 25 seconds or so a second 
has no read of its own. That second showed as a gap, which then scrolled along 
the strip.
   
   **Fix.** In `HealthHistory.record`, the seconds skipped between two reads 
take the state of the reads when there are at most two of them 
(`BRIDGED_SECONDS`) and both reads say the same. A longer time without reads, 
or two reads that differ, stays not known, as before. A short DOWN that was 
read still shows.
   
   **Tests.** `HealthHistoryTest` (new) covers three cases: a skipped second 
between two equal reads, a 9-second gap that stays not known, and a skipped 
second between two reads that differ. The first test fails without the fix. 
`HealthTabRenderTest` passes.
   
   🤖 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