ad4c005e01
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>
21 lines
545 B
Go
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")
|
|
}
|