WAKAYAMA shirou
0451709fe3
disk: add disk_io_counter to FreeBSD by using sysctl(kern.devstat.all).
2015-02-22 01:24:08 +09:00
WAKAYAMA shirou
be5b5a5754
move CallSysCall to common/common_freebsd
2015-02-21 22:43:58 +09:00
WAKAYAMA Shirou
bb1747fc85
disk: implements DiskIoCounterInfo on windows. Note: only read/write counts during 500 msec.
...
Thanks for mackerel-agent!
2015-02-19 23:52:06 +09:00
WAKAYAMA Shirou
4b0f5a03dc
host: use wmic OS instead of calling GetTickCount on Windows.
2015-02-15 22:26:18 +09:00
WAKAYAMA Shirou
4694ce0e4d
cpu: use wmic to get CPUInfo on Windows
2015-02-15 21:25:33 +09:00
WAKAYAMA shirou
b8dc51929a
forget to change float32 to float64
2015-02-15 20:48:29 +09:00
若山史郎
f2435bc8de
host: skip if utmp.Type is not USERPROCESS (defined in utmpx.h)
2015-02-14 23:08:05 +09:00
若山史郎
a5d366a70c
host: Users() on darwin works. but Started is not correct.
2015-02-14 23:04:17 +09:00
Shirou WAKAYAMA
4ead971d70
fix CPUTimes type change problem on other packages.
2015-02-13 23:14:36 +09:00
Shirou WAKAYAMA
753ea1bb48
fix when converting CPUTimes to JSON, sometimes idel have exponent
2015-02-13 23:11:27 +09:00
Shirou WAKAYAMA
4b5bf22b88
change CPUTimes type from float32 to float64 to resolve precision issue.
2015-02-13 22:45:12 +09:00
Shirou WAKAYAMA
18ab22b6fc
cpu: should be divided by CPU_TICK
2015-02-13 14:55:42 +09:00
WAKAYAMA Shirou
69ad6a7822
fix new line problem on Windows
2015-02-12 22:34:00 +09:00
shirou
3907a842a7
Merge pull request #36 from jwilder/jw-panic
...
Fix panics with docker stats
2015-02-11 18:22:04 +09:00
Jason Wilder
90c6c3ef3e
Fix panic in CgroupCPU
...
If an invalid container ID is passed to CgroupCPU,
a panic can result.
2015-02-10 11:36:19 -07:00
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.
2015-02-10 11:32:40 -07:00
若山史郎
d6802457a3
update README. now i386 is supported.
2015-02-09 11:30:38 +09:00
shirou
ec19c4651d
Merge pull request #34 from rekby/freebsd_386
...
+ process struct for freebsd 386
2015-02-07 23:55:00 +09:00
shirou
79dbbb73a6
Merge pull request #35 from rekby/linux_386
...
+ host and process for linux 386
2015-02-07 23:51:38 +09:00
rekby
29807862fb
+ host and process for linux 386
2015-02-07 11:06:59 +03:00
rekby
81898dcc91
+ process struct for freebsd 386
2015-02-07 10:59:34 +03:00
Shirou WAKAYAMA
59fefdbf72
add common_test.
2015-01-22 15:17:02 +09:00
Shirou WAKAYAMA
389b362cce
if not NULL terminated, size is not set correctly.
2015-01-22 15:16:09 +09:00
若山史郎
1dd94cadbd
add coverall.sh which can concatinate multi-package coverage.
2015-01-22 14:39:17 +09:00
shirou
4a0ce1d13e
Merge pull request #33 from codeskyblue/master
...
change cpu_linux.go: on some android, runtime.NumCPU() will not return r...
2015-01-14 09:48:22 +09:00
codeskyblue
3b43a3f496
change cpu_linux.go: on some android, runtime.NumCPU() will not return right number of cpu cores
2015-01-13 18:32:25 +08:00
shirou
df6dbdd1dc
Merge pull request #32 from brunoqc/patch-1
...
README: highlight the example's code
2015-01-13 10:05:37 +09:00
Bruno Bigras
a0eef8dfe9
README: highlight the example's code
2015-01-12 11:55:59 -05:00
Shirou WAKAYAMA
1f5941f396
add doc.go as placeholder to top.
2015-01-05 15:01:08 +09:00
Shirou WAKAYAMA
3ff690d1d8
make single network interface about NetIOCounters on darwin and freebsd
2015-01-01 21:54:45 +09:00
Shirou WAKAYAMA
406cbe9b87
implements pernic of NetIOCounters.
2015-01-01 21:29:25 +09:00
Shirou WAKAYAMA
a73ca04d3a
update README
2015-01-01 00:47:24 +09:00
Shirou WAKAYAMA
ce433bf86e
Merge branch 'separate_directories'
...
Conflicts:
README.rst
2015-01-01 00:35:43 +09:00
Shirou WAKAYAMA
cfb473f810
host linux now use godefs.
2014-12-31 22:58:39 +09:00
WAKAYAMA shirou
64f1a93c00
forget to add.
2014-12-31 22:47:22 +09:00
WAKAYAMA shirou
b0c9f81246
host_freebsd now use godefs
2014-12-31 00:30:55 +09:00
Shirou WAKAYAMA
4973aa73f9
start to use godefs to get C structs.
2014-12-31 00:13:52 +09:00
Shirou WAKAYAMA
13cd195a7e
change package name.
2014-12-30 22:09:05 +09:00
Shirou WAKAYAMA
4ff6a1cdc0
update README about disk_partitions of darwin
2014-12-29 00:11:18 +09:00
Shirou WAKAYAMA
e9d79d2fc4
disk_darwin is backported with 1.3 frozen syscall.
2014-12-29 00:10:28 +09:00
Shirou WAKAYAMA
3f7769ccfa
implement disk_partition of Darwin using golang.org/x/sys/unix.
2014-12-28 22:30:07 +09:00
Shirou WAKAYAMA
c0338e392f
fix README
2014-12-28 00:51:09 +09:00
Shirou WAKAYAMA
2efdb23875
add 1.4 notice.
2014-12-28 00:50:09 +09:00
Shirou WAKAYAMA
b4355247d6
README update.
2014-12-28 00:12:02 +09:00
Shirou WAKAYAMA
8e2514d23a
merge 9e216add90
2014-12-27 23:44:02 +09:00
Shirou WAKAYAMA
1cb67eb4c2
merge 039b9defab
2014-12-27 23:43:18 +09:00
Shirou WAKAYAMA
16de570414
merge 039b9defab
2014-12-27 23:42:00 +09:00
Shirou WAKAYAMA
c348a399b0
merged 6e713f1469
2014-12-27 23:08:36 +09:00
Shirou WAKAYAMA
9e216add90
add Notice about package structure changed to README.
2014-12-27 22:11:55 +09:00
shirou
512ba09921
Merge pull request #29 from jamescun/master
...
Unify JSON tags to snake_case
2014-12-06 21:40:26 +09:00