1
0
mirror of https://github.com/tw93/Mole.git synced 2026-03-24 11:45:08 +00:00

fix: harden CI test stability and status collector resilience

This commit is contained in:
tw93
2026-03-04 16:09:13 +08:00
parent c88691c2c8
commit ff69504f89
10 changed files with 158 additions and 19 deletions

View File

@@ -17,6 +17,9 @@ func collectMemory() (MemoryStatus, error) {
}
swap, _ := mem.SwapMemory()
if swap == nil {
swap = &mem.SwapMemoryStat{}
}
pressure := getMemoryPressure()
// On macOS, vm.Cached is 0, so we calculate from file-backed pages.