shirou_gopsutil/load
Steven Hartland 6450c60b61 Eliminate use of sysctl command on FreeBSD
In order to improve performance and help prevent crashes due to the outstanding fork crash bug:
https://github.com/golang/go/issues/15658

Replace string parsed values from the sysctl command with native reads of sysctl values using unix.SysctlRaw and unix.SysctlUint32.

This also merges OpenBSD and FreeBSD load implementations which are identical.
2017-10-05 08:45:56 +01:00
..
load.go [BREAKING CHANGE] rename functions to pass golint. ex) net.NetIOCounters -> net.IOCounters 2016-03-22 23:09:12 +09:00
load_bsd.go Eliminate use of sysctl command on FreeBSD 2017-10-05 08:45:56 +01:00
load_darwin.go fixed by golint. 2016-04-01 21:34:39 +09:00
load_fallback.go Add support for OpenBSD/amd64 2016-11-24 22:30:29 +01:00
load_linux.go [BREAKING CHANGE] rename functions to pass golint. ex) net.NetIOCounters -> net.IOCounters 2016-03-22 23:09:12 +09:00
load_test.go [load] freebsd: change to use x/sys/unix.SysctlRaw. 2017-10-04 22:34:47 +09:00
load_windows.go fixed by golint. 2016-04-01 21:34:39 +09:00