[chore]: Bump github.com/KimMachineGun/automemlimit from 0.4.0 to 0.5.0 (#2560)

This commit is contained in:
dependabot[bot] 2024-01-22 09:35:23 +00:00 committed by GitHub
commit a858831387
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
18 changed files with 513 additions and 108 deletions

View file

@ -0,0 +1,14 @@
package memlimit
import (
"github.com/pbnjay/memory"
)
// FromSystem returns the total memory of the system.
func FromSystem() (uint64, error) {
limit := memory.TotalMemory()
if limit == 0 {
return 0, ErrNoLimit
}
return limit, nil
}