mirror of https://github.com/shirou/gopsutil
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
This commit addresses several issues in the temperature sensor implementation for ARM Mac: 1. Memory leak caused by unreleased system resources 2. Increasing port counts in Activity Monitor 3. String corruption where the first character becomes "\x00" Changes: 1. Resource Management: - Added proper resource cleanup using `defer` statements - Refactored code to share the HID system client instead of creating new ones - Fixed memory leaks by ensuring all CoreFoundation objects are properly released 2. String Handling: - Fixed buffer allocation for string conversion - Properly handle null terminators in C string to Go string conversion - Added correct string length calculations 3. Code Structure: - Reduced resource allocation by sharing system client between functions - Enhanced code readability with better comments |
4 months ago | |
---|---|---|
.. | ||
ex_linux.go | 12 months ago | |
sensors.go | 12 months ago | |
sensors_aix.go | 9 months ago | |
sensors_darwin.go | 8 months ago | |
sensors_darwin_arm64.go | 4 months ago | |
sensors_fallback.go | 12 months ago | |
sensors_freebsd.go | 11 months ago | |
sensors_linux.go | 8 months ago | |
sensors_netbsd.go | 12 months ago | |
sensors_openbsd.go | 9 months ago | |
sensors_solaris.go | 12 months ago | |
sensors_test.go | 12 months ago | |
sensors_windows.go | 12 months ago |