Michal Rostecki
ff2e736f72
disk: Check for error objects returned by Getfsstat
2018-06-21 16:48:16 +02:00
Michal Rostecki
7c7dec96c6
cpu: Check for error object
2018-06-21 16:42:49 +02:00
Lomanic
b488b2747e
Merge pull request #538 from shrug42/meminfo_fields
...
add additional linux meminfo fields
2018-06-21 11:18:54 +02:00
Shrug 42
6a38ce2069
fix json tags
2018-06-20 10:20:54 -07:00
Shrug 42
12fad953c1
added additional linux meminfo fields
2018-06-19 13:12:33 -07:00
Lomanic
61e2d92d95
[host][windows] Query registry via golang.org/x/sys/windows instead of golang.org/x/sys/windows/registry
...
See https://github.com/shirou/gopsutil/pull/312#issuecomment-277422612
2018-06-18 23:03:56 +02:00
Lomanic
d8a6a50129
Revert "[host][windows] Refactor code to query registry via golang.org/x/sys/windows/registry"
...
This reverts commit c729bbd6a8e6fd243e2f43c24666c29feb3e6294.
2018-06-18 22:17:31 +02:00
Lomanic
c729bbd6a8
[host][windows] Refactor code to query registry via golang.org/x/sys/windows/registry
2018-06-17 23:48:45 +02:00
Lomanic
eb11fd6e2f
[host][windows] Completely remove slow wmi calls to retrieve OS version, use registry and RtlGetVersion
2018-06-17 23:41:32 +02:00
shirou
c23bcca55e
Merge pull request #535 from shirou/cast_stat_for_mips
...
disk[linux]: cast uint64 for build on MIPS
2018-06-13 17:40:40 +09:00
shirou
d813235a11
disk[linux]: cast uint64 for build on MIPS
...
related: #533
2018-06-12 22:59:43 +09:00
Lomanic
df331c7615
[host][windows] Use win32 API to get host's uptime instead of (slow) wmi
2018-06-10 18:30:22 +02:00
Lomanic
bc5d02c9ac
Merge pull request #532 from jsoriano/serial-number-without-udevadm
...
Read disk model and serial from udev data or sysfs on Linux
2018-06-05 09:51:35 +02:00
Jaime Soriano Pastor
f03124bf86
Read disk model and serial from udev data or sysfs on Linux
...
It reads model and serial data directly from files instead of using
`udevadm` command. This way obtaining the disk serial number doesn't
depend on command execution, and can be also possible even if udev or
udevadm are not available.
2018-06-01 13:57:18 +02:00
pytimer
ca3c7ff69e
[windows]services remove zsyscall_windows_ex.go file use golang/sys/windows QueryServiceStatusEx
2018-05-28 13:41:40 +08:00
pytimer
26add8e657
[windows]service: add windows service feature
2018-05-28 13:38:44 +08:00
Lomanic
eeb1d38d69
Merge pull request #530 from ofek/patch-1
...
fix link
v2.18.05
2018-05-24 08:32:40 +02:00
Ofek Lev
038eb06288
fix link
2018-05-24 02:12:10 -04:00
shirou
cbf4fde152
Merge pull request #527 from geekerlw/fix-swap-total-empty
...
mem[windows]: if no swap, just return 0 used percent default
2018-05-19 13:25:30 +09:00
Steven Lee
3adcafe5fd
mem[windows]: if no swap, just return 0 used percent default
2018-05-19 10:45:38 +08:00
shirou
0f1576d63c
mem[windows]: if no swap, total and/or used is 0.
2018-05-19 09:25:20 +09:00
shirou
57f370e130
[disk]linux: fix test
2018-05-02 14:58:36 +09:00
shirou
6a55ce0958
[disk]linux: fix Getlabel
2018-05-02 14:46:44 +09:00
shirou
7c23d960dc
Merge pull request #519 from ofek/mapper
...
[disk][linux] add label based on devicemapper name of disk
2018-05-02 14:35:57 +09:00
Ofek Lev
0f8edaa97e
address review
2018-04-29 21:51:27 -04:00
shirou
c95755e4bc
[host]darwin: remove GPL code
v2.18.04
2018-04-27 10:21:16 +09:00
Ofek Lev
35ed9c11c7
[disk][linux] add label based on devicemapper name of disk
2018-04-26 18:27:15 -04:00
shirou
63047d776e
Merge pull request #509 from maddie/master
...
[host] linux/mips: mips64le definition from mipsle
2018-04-17 11:11:51 +09:00
shirou
a5c2888e46
Merge pull request #512 from danielnelson/fix-vfs-bufspace-cannot-allocate-memory
...
Use uint64 sysctl when retrieving vfs.bufspace on FreeBSD
2018-04-13 22:54:31 +09:00
Daniel Nelson
28b1d7477e
Use uint64 when retrieving vfs.bufspace
...
On some system using a the uint32 function would return the error
"cannot allocate memory".
2018-04-12 15:33:51 -07:00
Maddie Zhan
8c8eeb32d3
[host] linux/mips: mips64le definition from mipsle
...
Same as commit fc04d2d, but for mips64le from mipsle definition.
It would be nice if anyone can check with the correctness, since the
qemu environment for mips64/mips64le can't run Go properly due to this
issue: https://github.com/golang/go/issues/15416
2018-04-08 09:21:08 +08:00
shirou
cd915bdc31
Merge pull request #508 from shirou/issue507
...
[host] Fix docker uptime parsing (fix #507 )
2018-04-06 17:26:13 +09:00
Lomanic
1b47825dcb
[host] Fix docker uptime parsing ( fix #507 )
2018-04-06 10:11:58 +02:00
shirou
fc04d2dd9a
[host]linux/mips: copy mips64 definition from mips.
...
It just copy from mips, so it may be corrupt, but I can not check it.
If something wrong, please open an issue.
v2.18.03
2018-03-31 22:05:15 +09:00
shirou
27cc4e1e4e
Merge pull request #506 from shirou/add_command_context
...
change to use CommandContext.
2018-03-31 21:51:55 +09:00
shirou
145dca90f7
change to use CommandContext.
2018-03-31 21:35:53 +09:00
shirou
837fc76f68
[disk] darwin i386: add definition for darwin/386
...
and change to use Statfs. it is same as freebsd/openbsd.
2018-03-31 17:02:38 +09:00
shirou
c3f470a77a
Merge pull request #504 from dimrozakis/linux-used-mem
...
Always calculate linux used mem as total-(free+buffered+cache)
2018-03-28 11:00:28 +09:00
shirou
1ba5059aca
[memory] Linux: add document url about OverCommiting.
2018-03-28 10:57:05 +09:00
shirou
a1564d2e89
Merge pull request #478 from DataDog/olivielpeau/commit-vm-stats
...
[mem] Add commit-related stats to VirtualMemoryStat on Linux
2018-03-28 10:49:09 +09:00
shirou
1fc354628c
Merge pull request #503 from cshunger/patch-1
...
Fix float64 casting
2018-03-28 10:32:54 +09:00
Dimitris Rozakis
4510db20db
Always calculate linux used mem as total-(free+buffered+cache)
...
Used memory was calculated as Total - Available.
For newer kernels (3.14+), available memory is taken from /proc/meminfo,
whereas for older kernels it is computed as free+buffered+cached.
This commit changes that behavior. Available memory is still taken from
/proc/meminfo, if available, but used memory is always computed as
total-free-buffered-cached.
This way, it matches the output of `free` for used memory (in the -/+
buffers/cache line) and other tools.
Prior to this change, I'd see a reported used memory of 600MiB whereas
free, htop and other tools would report a used memory of 1.8GiB. And
adding used, cached, buffered and free memory would leave ~1.2GiB
unaccounted for.
2018-03-26 21:38:02 +03:00
Chevy
699deed6c6
Fix float64 casting
2018-03-26 12:16:33 -05:00
shirou
b99342a9ce
[host] fallback: implement PlatformInformation()
2018-03-24 15:57:29 +09:00
shirou
26a4a2f995
[process]: move ErrorNoChildren to platform independent.
2018-03-24 15:56:32 +09:00
shirou
ebe614f6e1
[solaris] host: add PlatformInformation() which is missing.
2018-03-22 00:28:00 +09:00
shirou
12394ccbca
Merge pull request #502 from lclarkmichalek/master
...
Use static initialisation for invoke instances, instead of init funcs
2018-03-22 00:18:12 +09:00
Laurie Clark-Michalek
413cb32b6c
Use static initialisation for invoke instances, instead of init funcs
...
The order of init function execution is dependant on the order that the
source files are passed to the compiler. This causes issues when
building under other build systems, such as bazel or buck, as they are
not guarenteed to maintain the same file order as the default go tool.
2018-03-21 14:08:39 +00:00
shirou
6b5767f15e
Merge pull request #501 from HeChuanXUPT/fix_docker_uptime
...
fix docker uptime
2018-03-13 16:06:27 +09:00
linuxhe
ee5d6a3d8f
fix docker uptime
2018-03-13 14:46:16 +08:00