Commit Graph

1779 Commits (73fee847e650ff307eb25f8fcac6500b5ab18a31)
 

Author SHA1 Message Date
Aman Gupta 34b030b41c
Ignore getFileSystems errors when requesting all partitions
shirou 4db8c21d1e update Gopkg.lock
shirou 2bcfa5e074
Merge pull request #731 from traetox/master
Fixes issue #730
shirou 3ad4fbbb0c
Merge pull request #715 from Lomanic/issue599process
[process] Fix #599 cap percent values returned by *Percent() between 0 and 100
shirou 1edab195ef
Merge pull request #713 from Lomanic/issue607
[process] Fix #607 properly check PID existence
Kris Watts c3720007e4 Fixes issue #730
Lomanic 1917a27206
Merge pull request #725 from mznet/add_unreclaim
add SUnreclaim metric, this closes #719
Aman Gupta ea0f864aef ignore /proc/filesystems errors on android
Minje Park b7f9acbce8 add unreclaim metric, this closes #719
Snow Fox 018950cf06
Merge pull request #2 from shirou/master
merge master
litong 1f9466536e Add ifIndex support
litong 7ffe40e0db Add ifIndex support
Lomanic 507e2f7a53
Merge pull request #722 from imsodin/revert
Revert "[disk][openbsd] Use fallback for openBSD not on amd64"
Simon Frei fb73f7095e Revert "[disk][openbsd] Use fallback for openBSD not on amd64"
This reverts commit 3aa75af2ac.
shirou 47ef3260b6
Merge pull request #720 from imsodin/diskOpenBSDFallback
[disk][openbsd] Use fallback for openBSD not on amd64
shirou 940bc0930a
Merge pull request #721 from Lomanic/openbsd-disk-386-types
[disk][openbsd] Add 386 const and types definitions
Lomanic 8abc5387a0 [disk][openbsd] Add 386 const and types definitions
Simon Frei 3aa75af2ac [disk][openbsd] Use fallback for openBSD not on amd64
Lomanic 9219f16f03 [host][linux] Fix #340 return Solus OS as from the "solus" PlatformFamily in Info()
Lomanic 6a8ab0308e [net][linux] Go fmt net/net_linux.go
Lomanic fd0ebc6e03
Merge pull request #701 from wcc526/patch-5
Fix unhandled io.EOF error in net.ConnectionsMax
shirou 6c106d3395
Merge pull request #712 from shirou/feature/fix_freebsd_utmpx_time
fix FreeBSD Users() time
Lomanic f4e23559a2 [process] Fix #599 cap percent values returned by *Percent() between 0 and 100
Lomanic 4a95469fc9 [process][windows] Fix #607 check pid existence with OpenProcess+GetExitCodeProcess
Reference https://stackoverflow.com/a/600217
Lomanic 4ad0300e1e [process][windows] Remove magic numbers and useless constants
Lomanic 5b15bc623c [process][posix] Fix #607 check pid existence with a signal instead of listing every pids
Reference 0d6b91e916/lockfile_unix.go
Lomanic 428e65cdb0
Merge pull request #710 from shirou/feature/cpu_returns_100
[cpu]: return 100 instead 1 if t1 are bigger than t2
shirou eb59e7368e
Merge pull request #711 from tonylambiris/tl/add-hfsplus-support
Add support for hfsplus file system
WAKAYAMA shirou 669b2710bf [freebsd]host: change freebsd struct for 386 and arm.
WAKAYAMA shirou 2fd3f03f84 [freebsd][host]: fix Users() return start secs.
Tony Lambiris 80ceab90aa
Add support for hfsplus file system
shirou 86fdae99e1 [cpu]: return 100 instead 1 if t1 are bigger than t2
shirou 0e6ea68690
Merge pull request #707 from Lomanic/issue599
[cpu] WIP #599 cap percent values returned by Percent() between 0 and 100
shirou 14ba67b0ab
Merge pull request #706 from Lomanic/windows-process-nice
[process][windows] Use win32 API in process.Nice() instead of slow WMI call
shirou 4c8b404ee5
Merge pull request #708 from Lomanic/windows-snapprocess-loop
[process][windows] Deduplicate repeated code in CreateToolhelp32Snapshot related functions
Lomanic d7405fd873 [disk][linux] Follow symlinks with filepath.EvalSymlinks for LVM volumes
See #686
Lomanic 97328c4ed4
Merge pull request #686 from tonylambiris/tl/check-for-logical-volumes
Tl/check for logical volumes
Lomanic f036e8b9e8 [process][windows] Deduplicate repeated code in CreateToolhelp32Snapshot related functions
Lomanic 946c9ce6ea [cpu] Fix #599 cap percent values returned by Percent() between 0 and 100
See https://github.com/shirou/gopsutil/issues/599#issuecomment-491942842 for a repoduction case
Lomanic 2ac72f1fa1 [process][linux] Fix NewProcess() on Linux
Related to #704.
Don't break previous API where a Process is always returned, fix undefined variable p.
Lomanic 99169acbd8
Merge pull request #704 from josedh/master
preventing file open and bad defer close call
Jose De La O 258343806a Preventing file open and bad defer close. Allocating mem as late as
possible
Lomanic cf9aa4a8ec [process][windows] Use win32 API in process.Nice() instead of slow WMI call
Convert priority classes values to their WMI equivalent for backward
compatiblity.
shirou 13375e2f9c
Merge pull request #705 from Lomanic/issue586
[process][windows] Fix #586 use win32 API in process.Exe() instead of slow WMI call
Lomanic 47323f9ad5 [process][windows] Fix #586 use win32 API in process.Exe() instead of slow WMI call
This is faster by a factor of 100.

References:
5f4287d17f/psutil/_pswindows.py (L221)
921870d540/psutil/_psutil_windows.c (L1211)
921870d540/psutil/_psutil_windows.c (L626)
chi-chi weng 809306b78a
Fix the net.ConnectionsMax BUG
`connectionsList, err := net.ConnectionsMax("tcp4", 1000)`
when you run net.ConnectionsMax,you will find some proc is not equal with the `netstat -lptn`
Lomanic 35f21af98a
Merge pull request #699 from harpchad/solaris_cpu
Add support fo Solaris cpu times (idle, sys, user, iowait) in cpu_solaris
Chad Harp 8c6072d111 Cast bytes to string
shirou a83baef6e4
Merge pull request #698 from picatz/fix-platformFamily-on-macOS
Update host_darwin.go
Lomanic 658804ae70
Merge pull request #697 from Lomanic/issue693
[net][windows] Fix #693 use MIB_IF_ROW2/GetIfEntry2 to get real uint64 values from win32 API