From 28b1d7477eeca0635ac905c527fa5a35aebda8c5 Mon Sep 17 00:00:00 2001 From: Daniel Nelson Date: Thu, 12 Apr 2018 15:33:51 -0700 Subject: [PATCH] Use uint64 when retrieving vfs.bufspace On some system using a the uint32 function would return the error "cannot allocate memory". --- mem/mem_freebsd.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mem/mem_freebsd.go b/mem/mem_freebsd.go index 1fa880b8d..2d65f8030 100644 --- a/mem/mem_freebsd.go +++ b/mem/mem_freebsd.go @@ -39,7 +39,7 @@ func VirtualMemoryWithContext(ctx context.Context) (*VirtualMemoryStat, error) { if err != nil { return nil, err } - buffers, err := unix.SysctlUint32("vfs.bufspace") + buffers, err := unix.SysctlUint64("vfs.bufspace") if err != nil { return nil, err }