| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Sorry, something went wrong.
There was a problem hiding this comment.
2 issues found across 4 files
Prompt for AI agents (all 2 issues)
Check if these issues are valid — if so, understand the root cause of each and fix them.
<file name="src/collectors/windows.plugin/GetPowerSupply.c">
<violation number="1" location="src/collectors/windows.plugin/GetPowerSupply.c:43">
P1: Capacity calculation has inverted operands. This computes `FullChargedCapacity / Capacity` instead of `Capacity / FullChargedCapacity`, producing incorrect percentages (e.g., 50% battery shows as 200%).</violation>
</file>
<file name="src/collectors/windows.plugin/GetSensors.c">
<violation number="1" location="src/collectors/windows.plugin/GetSensors.c:577">
P2: Return value of `netdata_clsid_to_char` is not checked. If conversion fails, an empty string will be used as the dictionary key, potentially causing multiple sensors to collide on the same key.</violation>
</file>
Reply to cubic to teach it or ask questions. Re-run a review with @cubic-dev-ai review this PR
Sorry, something went wrong.
(cherry picked from commit 9b023c3)
(cherry picked from commit 9b023c3)
| Back | FazBrowse Home | New Git URL |
Summary
This is the first PR addressing potential issues with the Windows plugin on some operating systems.
Test Plan
Additional Information
For users: How does this change affect me?Summary by cubic
Stabilizes Windows hardware collection by fixing CPU temp chart setup, safer sensor GUID handling, battery enumeration/capacity reporting, and service status error handling. Improves stability, prevents memory issues, and corrects a user-facing label.
Written for commit 3af3a6a. Summary will update automatically on new commits.