mirror of
https://github.com/rcourtman/Pulse.git
synced 2026-09-22 19:23:31 +00:00
ef6adfc121
Adds TestMemoryStatusEffectiveAvailable_RegressionIssue435 with 5 test scenarios covering all memory calculation edge cases reported in GitHub issue #435: 1. Proxmox 8.x with 'available' field (most common) 2. Older Proxmox with 'avail' field 3. Derived calculation from free+buffers+cached 4. Real user case: 86% displayed when actual usage was 42% 5. Missing all cache fields (fallback behavior) Tests verify EffectiveAvailable() correctly returns cache-aware memory values and calculates realistic usage percentages that exclude reclaimable cache. These tests ensure future changes don't regress the cache-aware behavior that was fixed in v4.15.0-rc.3.