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:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user