-
Notifications
You must be signed in to change notification settings - Fork 78
feat(FR-1666): clamp CPU live stats to the theoretical maximum rage #4648
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
How to use the Graphite Merge QueueAdd either label to this PR to merge it via the merge queue:
You must have a Graphite account in order to use the merge queue. Sign up using this link. An organization admin has required the Graphite Merge Queue in this repository. Please do not merge from GitHub as this will restart CI on PRs being processed by the merge queue. This stack of pull requests is managed by Graphite. Learn more about stacking. |
Coverage report for
|
St.❔ |
Category | Percentage | Covered / Total |
|---|---|---|---|
| 🔴 | Statements | 4.68% | 547/11676 |
| 🔴 | Branches | 3.82% | 314/8227 |
| 🔴 | Functions | 2.91% | 104/3577 |
| 🔴 | Lines | 4.63% | 529/11417 |
Test suite run success
125 tests passing in 14 suites.
Report generated by 🧪jest coverage report action from 1b47b77
yomybaby
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
20490a0 to
bfd10d6
Compare
d013e0b to
5d92a85
Compare
Merge activity
|
…4648) resolves #4614 (FR-1666) This PR fixes CPU utilization calculation in several components: 1. In `AgentList.tsx`, updated the CPU utilization ratio calculation to use the percentage value directly from the node data and properly handle division by zero. 2. In `SessionSlotCell.tsx`, improved the CPU usage display by: - Using more descriptive variable names - Adding proper bounds checking with `Math.min` - Ensuring the percentage calculation is correctly capped at 100% 3. In `SessionUsageMonitor.tsx`, applied similar improvements to ensure CPU utilization is properly calculated and displayed, with appropriate upper bounds. **Checklist:** (if applicable) - [ ] Documentation - [ ] Minium required manager version - [ ] Specific setting for review (eg., KB link, endpoint or how to setup) - [ ] Minimum requirements to check during review - [ ] Test case(s) to demonstrate the difference of before/after
5d92a85 to
1b47b77
Compare

resolves #4614 (FR-1666)
This PR fixes CPU utilization calculation in several components:
In
AgentList.tsx, updated the CPU utilization ratio calculation to use the percentage value directly from the node data and properly handle division by zero.In
SessionSlotCell.tsx, improved the CPU usage display by:Math.minIn
SessionUsageMonitor.tsx, applied similar improvements to ensure CPU utilization is properly calculated and displayed, with appropriate upper bounds.Checklist: (if applicable)