Skip to content

Commit

Permalink
Use uint64 when retrieving vfs.bufspace
Browse files Browse the repository at this point in the history
On some system using a the uint32 function would return the error
"cannot allocate memory".
  • Loading branch information
danielnelson committed Apr 12, 2018
1 parent cd915bd commit 28b1d74
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion mem/mem_freebsd.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
}
Expand Down

0 comments on commit 28b1d74

Please sign in to comment.