1
0
mirror of https://github.com/shirou/gopsutil.git synced 2025-04-26 13:48:59 +08:00

10 Commits

Author SHA1 Message Date
shirou
7ae41c1f40 [v2][solaris][mem] fix invoke ctx. 2021-10-17 13:20:16 +00:00
shirou
3e7da36a46 [mem][solaris] fix wrong variable name. 2021-10-17 10:13:04 +00:00
Punya Biswal
32b14a3723 Use invoke.CommandWithContext 2021-09-28 10:09:43 -04:00
Punya Biswal
7c1aa06a5e Respond to review comments
* use LookPath for better error messages
* support procfs in containers
2021-09-08 16:15:26 -04:00
Tom Barker
84a665b712 Add mem.SwapDevices() method. 2021-08-19 10:16:30 -04:00
Segflow
86c7289ccc Fix: use filename in exec.LookPath instead of full path
exec.LookPath searches for the file in the $PATH, which mean giving it an absolute path is against it's own purposes.
2019-05-05 20:45:07 +01:00
shirou
145dca90f7 change to use CommandContext. 2018-03-31 21:35:53 +09:00
shirou
4c73494c78 Add WithContext functions. 2017-12-31 15:25:49 +09:00
WAKAYAMA Shirou
f8ef680a47 error strings change to lowercase 2017-03-15 22:43:20 +09:00
James Nugent
b7760bb5a6 memory: Add basic Solaris VirtualMemory() support
This commit adds support for VirtualMemory() in package mem. The support
only extends to total memory capcity, since that is all that is required
in Nomad. It does take into account global versus non-global zones, and
does not use cgo.

This has been tested inside a zone in the Joyent public cloud for a
non-global zone, and in the global zone of a SmartOS virtual machine.
2017-03-14 16:28:50 -05:00