1
0
mirror of https://github.com/tw93/Mole.git synced 2026-02-04 16:49:41 +00:00

feat: display macOS battery capacity and cached memory, and refine status view presentation

This commit is contained in:
Tw93
2026-01-02 19:59:07 +08:00
parent 6c8c87bef6
commit cc0cbef8d9
4 changed files with 127 additions and 32 deletions

View File

@@ -83,7 +83,8 @@ type MemoryStatus struct {
UsedPercent float64
SwapUsed uint64
SwapTotal uint64
Pressure string // macOS memory pressure: normal/warn/critical
Cached uint64 // File cache that can be freed if needed
Pressure string // macOS memory pressure: normal/warn/critical
}
type DiskStatus struct {
@@ -115,6 +116,7 @@ type BatteryStatus struct {
TimeLeft string
Health string
CycleCount int
Capacity int // Maximum capacity percentage (e.g., 85 means 85% of original)
}
type ThermalStatus struct {