- 12 2月, 2016 7 次提交
-
-
由 Shirou WAKAYAMA 提交于
-
由 shirou 提交于
Return correct user name from process.Username()
-
由 Shirou WAKAYAMA 提交于
-
由 Shirou WAKAYAMA 提交于
-
由 Johan Walles 提交于
-
由 Johan Walles 提交于
process.Process.uids is an array of undocumented values. That one of them is the user that the process is running as is obvious, but what the other two are supposed to be is AFAICT undocumented. On Darwin, the second and third UID (out of three) seem to always be 0. This change removes the two always-zero UIDs from the process.Process struct on Darwin, and leaves just the one that actually identifies the user the process is running as.
-
由 Johan Walles 提交于
Before this change, process.Username() returned "root" for all processes on Darwin.
-
- 11 2月, 2016 2 次提交
-
-
由 shirou 提交于
Make a public function for computing total CPU time
-
由 Johan Walles 提交于
This function used to be a private part of process.go. Since I needed that functionality however I think it's better to make it public than for me to copy it into my own code. As a side effect of this change, I also fixed a bug in the function where Stolen was not part of the sum. Having the function close to the CPUTimesStat declaration will make problems like this less likely to re-occur in the future.
-
- 10 2月, 2016 2 次提交
-
-
由 shirou 提交于
fix meminfo output on consecutive calls
-
由 Ben Aldrich 提交于
-
- 09 2月, 2016 2 次提交
-
-
由 shirou 提交于
There are two possible error scenarios for CallPgrep.
-
由 Robert Weber 提交于
-
- 07 2月, 2016 1 次提交
-
-
由 shirou 提交于
try to fix diskio stats on FreeBSD-10.x
-
- 06 2月, 2016 1 次提交
-
-
由 elij 提交于
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.
-
- 05 2月, 2016 3 次提交
-
-
由 Robert Weber 提交于
-
由 Robert Weber 提交于
-
由 Robert Weber 提交于
system (no pgrep command) and one is a normal error state of pgrep meaning no processes found for the criteria given (in this case the parent pid does not exist or the process simply has no children). The later case is quite usefull to know about so I added a static error for this case.
-
- 02 2月, 2016 5 次提交
-
-
由 shirou 提交于
host_linux: Skip everything that isn't a normal process.
-
由 Robin Burchell 提交于
Matches the host_linux change.
-
由 Robin Burchell 提交于
host_darwin does the same filtering. Not doing this gives us some rather strange entries that likely aren't what we want. Before: {"user":"reboot","terminal":"~","host":"3.10.0-327.4.5.el7.x86_64","started":1454378260} {"user":"LOGIN","terminal":"ttyS0","host":"","started":1454378270} {"user":"LOGIN","terminal":"tty1","host":"","started":1454378270} {"user":"runlevel","terminal":"~","host":"3.10.0-327.4.5.el7.x86_64","started":1454378276} {"user":"root","terminal":"pts/0","host":"vpn","started":1454404513} After: {"user":"root","terminal":"pts/0","host":"vpn","started":1454404513}
-
由 shirou 提交于
fix callps command generate error
-
由 Heretic 提交于
-
- 29 1月, 2016 1 次提交
-
-
由 shirou 提交于
[WIP] net,process[linux]: add process.NetIOCounter and net.NetIOCounterByFile.
-
- 27 1月, 2016 2 次提交
-
-
由 shirou 提交于
Add -a when calling ps on darwin
-
由 Cameron Sparr 提交于
-
- 21 1月, 2016 1 次提交
-
-
由 Shirou WAKAYAMA 提交于
-
- 20 1月, 2016 2 次提交
-
-
由 shirou 提交于
Optimize per-process percentage calculation
-
由 Cameron Sparr 提交于
-
- 12 1月, 2016 2 次提交
-
-
由 shirou 提交于
Get Arch Linux Version from LSB
-
由 Paul Querna 提交于
-
- 10 1月, 2016 2 次提交
-
-
由 shirou 提交于
format go program with go 1.5.2 "go fmt"
-
由 Masayoshi Sekimura 提交于
-
- 31 12月, 2015 2 次提交
-
-
由 shirou 提交于
fix typos
-
由 Shawn Smith 提交于
-
- 16 12月, 2015 5 次提交
-
-
由 shirou 提交于
Add nf_conntrack counter support
-
由 shirou 提交于
Add -W flag to netstat on BSD systems
-
由 shirou 提交于
CPU race condition fix
-
由 Ryan J. O'Neil 提交于
-
由 Ryan J. O'Neil 提交于
-