| 1 | //go:build !linux |
| 2 | |
| 3 | package main |
| 4 | |
| 5 | import "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. |
| 9 | func hostMemory() (int64, error) { |
| 10 | return 0, errors.New("only read on Linux") |
| 11 | } |