Commit Graph

7 Commits (821a0141b11ecf0a98be74c5836873f6deb8ba96)

Author SHA1 Message Date
Shirou WAKAYAMA 3166d41538 set LC_ALL to C in order to avoid number formatting problem.
WAKAYAMA shirou 0af91ba32b [disk,process]freebsd: binary.go moved to internal.
elij d1380cba29 try to fix diskio stats on FreeBSD-10.x
FreeBSD apparently changed the magic sysctl mib values for devstats.

    --- FAIL: TestDisk_io_counters (0.00s)
    disk_test.go:39: error no such file or directory
    disk_test.go:42: ret is empty, map[]

This code uses an undocumented, but exported, go stdlib method to fetch
the sysctl by string instead of mib.
Shawn Smith 9cc9e82920 fix typos
James Lamb 22f35fd518 add netfilter counter support
Shirou WAKAYAMA dd13300833 process[linux,freebsd,darwin]: implements Children using pgrep.
Daniel Theophanes 0af895258e common: rename package common to internal/common. Add ENV helper funcs.
Package common wasn't used for public functions. Place it in an
internal directory to prevent other packages from using.

Remove the distributed references to "HOST_PROC" and "HOST_SYS"
consts and combine into a common function. This also helps so that
if a env var is defined with a trailing slash all will continue to
work as expected.

Fixes #100