mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-09-13 06:09:21 -04:00
Bumps [github.com/KimMachineGun/automemlimit](https://github.com/KimMachineGun/automemlimit) from 0.7.5 to 1.0.0. - [Release notes](https://github.com/KimMachineGun/automemlimit/releases) - [Commits](https://github.com/KimMachineGun/automemlimit/compare/v0.7.5...v1.0.0) --- updated-dependencies: - dependency-name: github.com/KimMachineGun/automemlimit dependency-version: 1.0.0 dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
9 lines
209 B
Go
9 lines
209 B
Go
//go:build linux
|
|
|
|
package memlimit
|
|
|
|
// FromCgroup returns the memory limit for the current process's cgroup.
|
|
func FromCgroup() (uint64, error) {
|
|
return fromCgroup(procSelfMountInfoPath, procSelfCgroupPath)
|
|
}
|