pkg/osutil: fix arm build

pkg/osutil/osutil_linux.go:44:13: cannot use info.Totalram (type uint32) as type uint64 in return argument
This commit is contained in:
Andrey Konovalov 2019-09-15 14:00:11 +02:00 committed by Andrey Konovalov
parent cb93629971
commit 51ca0454d7

View File

@ -41,7 +41,7 @@ func RemoveAll(dir string) error {
func SystemMemorySize() uint64 {
var info syscall.Sysinfo_t
syscall.Sysinfo(&info)
return info.Totalram
return uint64(info.Totalram) //nolint:unconvert
}
func removeImmutable(fname string) error {