Skip to content

Commit

Permalink
pkg/osutil: fix arm build
Browse files Browse the repository at this point in the history
pkg/osutil/osutil_linux.go:44:13: cannot use info.Totalram (type uint32) as type uint64 in return argument
  • Loading branch information
xairy committed Sep 16, 2019
1 parent cb93629 commit 51ca045
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/osutil/osutil_linux.go
Expand Up @@ -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 {
Expand Down

0 comments on commit 51ca045

Please sign in to comment.