gunk-dev/the-valley

hostmem_other.go

sourceaf38e23853bamain's published tip history
271 bytes
1//go:build !linux
2
3package main
4
5import "errors"
6
7// hostMemory is not read where there are no cgroups to find a limit in,
8// so a pass there finds no evaluation budget unless one is given.
9func hostMemory() (int64, error) {
10 return 0, errors.New("only read on Linux")
11}