Commit Graph

619 Commits (37b6b4051fa048ffdcc02722111d820637bcd7f2)
 

Author SHA1 Message Date
若山史郎 a5d366a70c host: Users() on darwin works. but Started is not correct.
Shirou WAKAYAMA 4ead971d70 fix CPUTimes type change problem on other packages.
Shirou WAKAYAMA 753ea1bb48 fix when converting CPUTimes to JSON, sometimes idel have exponent
Shirou WAKAYAMA 4b5bf22b88 change CPUTimes type from float32 to float64 to resolve precision issue.
Shirou WAKAYAMA 18ab22b6fc cpu: should be divided by CPU_TICK
WAKAYAMA Shirou 69ad6a7822 fix new line problem on Windows
shirou 3907a842a7 Merge pull request #36 from jwilder/jw-panic
Fix panics with docker stats
Jason Wilder 90c6c3ef3e Fix panic in CgroupCPU
If an invalid container ID is passed to CgroupCPU,
a panic can result.
Jason Wilder 812b04d363 Don't ignore err when getting CgroupMemDocker stats
Fixes panic: runtime error: index out of range

goroutine 10 [running]:
testing.func·006()
	/usr/local/go/src/testing/testing.go:441 +0x181
github.com/shirou/gopsutil/docker.CgroupMem(0x586b30, 0x6, 0x5a87d0, 0x1c, 0x0, 0x0, 0x0)
	/home/jwilder/go/src/github.com/shirou/gopsutil/docker/docker_linux.go:119 +0xf48
github.com/shirou/gopsutil/docker.CgroupMemDocker(0x586b30, 0x6, 0x0, 0x0, 0x0)
	/home/jwilder/go/src/github.com/shirou/gopsutil/docker/docker_linux.go:184 +0x57

If the ID passed to the CGroupMemDocker does not exist, you can get
a panic at runtime.  This can happen when a container exits before
calling the func.
若山史郎 d6802457a3 update README. now i386 is supported.
shirou ec19c4651d Merge pull request #34 from rekby/freebsd_386
+ process struct for freebsd 386
shirou 79dbbb73a6 Merge pull request #35 from rekby/linux_386
+ host and process for linux 386
rekby 29807862fb + host and process for linux 386
rekby 81898dcc91 + process struct for freebsd 386
Shirou WAKAYAMA 59fefdbf72 add common_test.
Shirou WAKAYAMA 389b362cce if not NULL terminated, size is not set correctly.
若山史郎 1dd94cadbd add coverall.sh which can concatinate multi-package coverage.
shirou 4a0ce1d13e Merge pull request #33 from codeskyblue/master
change cpu_linux.go: on some android, runtime.NumCPU() will not return r...
codeskyblue 3b43a3f496 change cpu_linux.go: on some android, runtime.NumCPU() will not return right number of cpu cores
shirou df6dbdd1dc Merge pull request #32 from brunoqc/patch-1
README: highlight the example's code
Bruno Bigras a0eef8dfe9 README: highlight the example's code
Shirou WAKAYAMA 1f5941f396 add doc.go as placeholder to top.
Shirou WAKAYAMA 3ff690d1d8 make single network interface about NetIOCounters on darwin and freebsd
Shirou WAKAYAMA 406cbe9b87 implements pernic of NetIOCounters.
Shirou WAKAYAMA a73ca04d3a update README
Shirou WAKAYAMA ce433bf86e Merge branch 'separate_directories'
Conflicts:
	README.rst
Shirou WAKAYAMA cfb473f810 host linux now use godefs.
WAKAYAMA shirou 64f1a93c00 forget to add.
WAKAYAMA shirou b0c9f81246 host_freebsd now use godefs
Shirou WAKAYAMA 4973aa73f9 start to use godefs to get C structs.
Shirou WAKAYAMA 13cd195a7e change package name.
Shirou WAKAYAMA 4ff6a1cdc0 update README about disk_partitions of darwin
Shirou WAKAYAMA e9d79d2fc4 disk_darwin is backported with 1.3 frozen syscall.
Shirou WAKAYAMA 3f7769ccfa implement disk_partition of Darwin using golang.org/x/sys/unix.
Shirou WAKAYAMA c0338e392f fix README
Shirou WAKAYAMA 2efdb23875 add 1.4 notice.
Shirou WAKAYAMA b4355247d6 README update.
Shirou WAKAYAMA 8e2514d23a merge 9e216add90
Shirou WAKAYAMA 1cb67eb4c2 merge 039b9defab
Shirou WAKAYAMA 16de570414 merge 039b9defab
Shirou WAKAYAMA c348a399b0 merged 6e713f1469
Shirou WAKAYAMA 9e216add90 add Notice about package structure changed to README.
shirou 512ba09921 Merge pull request #29 from jamescun/master
Unify JSON tags to snake_case
James Cunningham bddb35d0c6
Updated Tests to snake_case
James Cunningham 039b9defab
Unified all structs json tags to snake_case
shirou 2b6366a26d Merge pull request #28 from def/master
[linux] fix /proc/net/dev parsing
WAKAYAMA Shirou 9f2c985a28 fix windows build.
Shirou WAKAYAMA a1c1d7b25f fix on Linux.
WAKAYAMA shirou d11680c773 fix bugs on FreeBSD.
Shirou WAKAYAMA a4671fcc2a move subdirectories. refer to issue #24