Merge pull request #512 from danielnelson/fix-vfs-bufspace-cannot-allocate-memory

Use uint64 sysctl when retrieving vfs.bufspace on FreeBSD
pull/516/head
shirou 7 years ago committed by GitHub
commit a5c2888e46
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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
}

Loading…
Cancel
Save