(memLimit float64)
| 85 | } |
| 86 | |
| 87 | func getCgroupMemLimit(memLimit float64) float64 { |
| 88 | if memLimit == float64(^uint64(0)) { |
| 89 | return getHostMemLimit() |
| 90 | } |
| 91 | return memLimit |
| 92 | } |
| 93 | |
| 94 | func getHostMemLimit() float64 { |
| 95 | file, err := os.Open("/proc/meminfo") |
no test coverage detected
searching dependent graphs…