Oleksandr Redko
a589b9f2e1
chore(deps): bump shirou/gopsutil from v3 to v4
2026-01-16 17:23:00 +02:00
Tw93
facaf5b34c
fix: precision issue in battery metrics and adaptive purge UI
...
- cmd/status: use ParseUint to handle negative battery power values correctly
- bin/purge: make path truncation adaptive to terminal width
2026-01-14 11:57:10 +08:00
Tw93
9b3220bfe4
fix: handle uint64 overflow in battery power metrics
...
- Fix display of invalid large values like 18446744073709544W
- macOS ioreg returns negative values as uint64 (two's complement)
- Detect overflow pattern (value > 2^63) and convert to signed
- Validate reasonable power range (-200W to 200W) for battery
- Add range validation for SystemPower (0 to 1000W)
Root cause: During charging, battery power is negative but ioreg
formats it as unsigned uint64, causing overflow. This fix properly
converts these values back to signed integers.
2026-01-14 11:26:37 +08:00
Tw93
64a580b3a7
feat: cat hide toggle and critical fixes ( #272 )
...
- Add 'k' key to hide/show cat in mo status
- Hand-crafted mirror frames for better left-walking animation
- Fix extra blank lines bug (strings.Lines → strings.Split)
- Fix battery power overflow (ParseInt for negative values)
- Optimize README Tips section (8 → 5 items)
2026-01-08 11:27:47 +08:00
Oleksandr Redko
158af1e1ba
refactor: modernize Go code
2026-01-06 12:04:27 +02:00
Tw93
cc0cbef8d9
feat: display macOS battery capacity and cached memory, and refine status view presentation
2026-01-02 19:59:07 +08:00
Tw93
9aa569cbb6
feat: Enhance clean, optimize, analyze, and status commands, and update security audit documentation.
2025-12-31 16:23:31 +08:00
Tw93
f410f356df
feat: Display system, adapter, and battery power metrics in status view
2025-12-22 19:30:35 +08:00
Tw93
be43f68cc1
feat: enhance status UI with new styles and icons, refactor battery metrics with caching, and centralize Apple Silicon clean logic.
2025-12-19 20:34:23 +08:00
Tw93
33467be3d3
refactor(status): simplify temperature detection using ioreg battery sensor
2025-12-11 14:00:44 +08:00
Tw93
d7bf52a397
feat(status): add temperature display via osx-cpu-temp or powermetrics
2025-12-11 13:53:59 +08:00
Tw93
36a84e5211
Reconstruct the structure of go
2025-12-01 19:26:03 +08:00