Use uint64 when retrieving vfs.bufspace

On some system using a the uint32 function would return the error
"cannot allocate memory".
pull/512/head
Daniel Nelson 7 years ago
parent cd915bdc31
commit 28b1d7477e
No known key found for this signature in database
GPG Key ID: CAAD59C9444F6155

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