Commit Graph

11 Commits (234b6bc9b8fb4ecdf063e85e8cd84ee68f8a43dc)

Author SHA1 Message Date
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.
8 years ago
Shirou WAKAYAMA 57f6aebc7e add Timeout to invoke command and use common.Invoke refs: #201 9 years ago
Shirou WAKAYAMA 613a8a90e1 fixed by golint. 9 years ago
Johan Walles 0d5592714b Fix memory stats on LinuxFreeBSD 9 years ago
Masayoshi Sekimura 3a1fa5dc80 format go program with go 1.5.2 "go fmt" 9 years ago
Nikolay Sivko 075839d9f1 fix imports 9 years ago
Nikolay Sivko d4e648e253 [freebsd] fix SwapMemory for hosts without swap 9 years ago
Shirou WAKAYAMA 7288e9a5af common[all]: add internal 10 years ago
WAKAYAMA shirou be88485e9f mem[freebsd]: fix virtual memory available and used. 10 years ago
Shirou WAKAYAMA 13cd195a7e change package name. 10 years ago
Shirou WAKAYAMA a4671fcc2a move subdirectories. refer to issue #24 10 years ago