Files
admin ad4c005e01 v0.27.3: Use real system memory everywhere, add monitoring memory bar
Deploy page, pre-start check, and deploy validation now use actual
/proc/meminfo usage instead of declared mem_request sums. New
GetMemoryMB() helper for lightweight real-time memory reads. Monitoring
page gains a stacked memory distribution bar showing per-container
usage, OS overhead, and free memory.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-23 10:06:03 +01:00

21 lines
545 B
Go

//go:build !linux
package system
import "fmt"
// GetInfo returns empty system info on non-Linux platforms.
func GetInfo(_ string, _ *CPUCollector) SystemInfo {
return SystemInfo{}
}
// GetTotalMemoryMB is not available on non-Linux platforms.
func GetTotalMemoryMB() (int, error) {
return 0, fmt.Errorf("/proc/meminfo not available on this platform")
}
// GetMemoryMB is not available on non-Linux platforms.
func GetMemoryMB() (totalMB, usedMB int, err error) {
return 0, 0, fmt.Errorf("/proc/meminfo not available on this platform")
}