1
0
mirror of https://github.com/shirou/gopsutil.git synced 2025-05-14 19:29:16 +08:00

1695 Commits

Author SHA1 Message Date
Aman Gupta
74d3cea10f Proper fix for unavailable /proc/filesystems 2019-08-12 18:33:25 -07:00
Lomanic
903a879e03
Merge pull request #748 from tmm1/patch-4
[host] Trim null bytes from unix.Uname() results
2019-08-13 00:39:29 +02:00
Aman Gupta
25be4d08fe
Trim null bytes from kernel arch 2019-08-12 13:32:14 -07:00
Aman Gupta
62a406ec1b
Trim null bytes from kernel version 2019-08-12 13:30:54 -07:00
shirou
8a5bcfdb53
Merge pull request #739 from Lomanic/issue738
[host][linux] Fix #738 use uname syscall to get version in KernelVersion()
2019-08-11 21:57:14 +09:00
shirou
dd49c3f47f
Merge pull request #741 from floren/fix-mapper
Fixes a problem when using Docker on a host with an encrypted LLVM root.
2019-08-11 21:55:29 +09:00
shirou
af62c4eab6
Merge pull request #745 from Lomanic/issue737
[host] Fix #737 add KernelArch field in InfoStat struct returning 'uname -m' result
2019-08-11 21:48:02 +09:00
Lomanic
097237b157
Merge pull request #735 from Lomanic/issue729
[process] Fix #729 check process existence in NewProcess()
2019-08-10 20:16:17 +02:00
Lomanic
4bf185067d [host] Fix #737 add KernelArch field in InfoStat struct returning 'uname -m' result 2019-08-08 23:11:41 +02:00
Lomanic
98c779765f [host] go-fmt and propagate context on Windows in Info() 2019-08-07 22:34:36 +02:00
John Floren
93e08ea089 Fixes a problem when using Docker on a host with an encrypted LLVM root. A docker container with a volume mounted from the host will see /dev/mapper in its mount info file, but will not be able to read it. 2019-08-05 14:01:19 -06:00
Lomanic
8c28c3ba17 [host][linux] Fix #738 use uname syscall to get version in KernelVersion() 2019-08-03 18:36:36 +02:00
Lomanic
3465186bca [process] Fix #729 check process existence in NewProcess() 2019-08-01 21:12:48 +02:00
Lomanic
d80c43f9c9
Merge pull request #733 from eshimizu/eshimizu-patch-1
Update disk_linux.go remove unused runtime package
v2.19.7
2019-07-31 15:47:26 +02:00
eshimizu
91b1c81467
Update disk_linux.go 2019-07-31 22:33:57 +09:00
shirou
0bb41276be
Merge pull request #728 from fancybits/android-filesystems
ignore /proc/filesystems errors on android
2019-07-31 22:10:28 +09:00
Aman Gupta
34b030b41c
Ignore getFileSystems errors when requesting all partitions 2019-07-30 17:59:09 -07:00
shirou
4db8c21d1e update Gopkg.lock 2019-07-28 22:07:05 +09:00
shirou
2bcfa5e074
Merge pull request #731 from traetox/master
Fixes issue #730
2019-07-27 22:10:47 +09:00
shirou
3ad4fbbb0c
Merge pull request #715 from Lomanic/issue599process
[process] Fix #599 cap percent values returned by *Percent() between 0 and 100
2019-07-27 21:45:36 +09:00
shirou
1edab195ef
Merge pull request #713 from Lomanic/issue607
[process] Fix #607 properly check PID existence
2019-07-27 21:44:46 +09:00
Kris Watts
c3720007e4 Fixes issue #730 2019-07-26 12:05:16 -06:00
Lomanic
1917a27206
Merge pull request #725 from mznet/add_unreclaim
add SUnreclaim metric, this closes #719
2019-07-26 19:27:58 +02:00
Aman Gupta
ea0f864aef ignore /proc/filesystems errors on android 2019-07-22 13:09:37 -07:00
Minje Park
b7f9acbce8 add unreclaim metric, this closes #719 2019-07-20 23:42:39 +09:00
Snow Fox
018950cf06
Merge pull request #2 from shirou/master
merge master
2019-07-18 15:26:30 +08:00
litong
1f9466536e Add ifIndex support 2019-07-18 15:21:21 +08:00
litong
7ffe40e0db Add ifIndex support 2019-07-18 15:12:45 +08:00
Lomanic
507e2f7a53
Merge pull request #722 from imsodin/revert
Revert "[disk][openbsd] Use fallback for openBSD not on amd64"
2019-07-16 14:53:25 +02:00
Simon Frei
fb73f7095e Revert "[disk][openbsd] Use fallback for openBSD not on amd64"
This reverts commit 3aa75af2ac502b28e078f653497a24d3809c63d4.
2019-07-16 12:25:53 +02:00
shirou
47ef3260b6
Merge pull request #720 from imsodin/diskOpenBSDFallback
[disk][openbsd] Use fallback for openBSD not on amd64
2019-07-14 14:42:39 +09:00
shirou
940bc0930a
Merge pull request #721 from Lomanic/openbsd-disk-386-types
[disk][openbsd] Add 386 const and types definitions
2019-07-14 14:40:21 +09:00
Lomanic
8abc5387a0 [disk][openbsd] Add 386 const and types definitions 2019-07-13 23:39:05 +02:00
Simon Frei
3aa75af2ac [disk][openbsd] Use fallback for openBSD not on amd64 2019-07-13 00:54:37 +02:00
Lomanic
9219f16f03 [host][linux] Fix #340 return Solus OS as from the "solus" PlatformFamily in Info() 2019-07-11 22:18:40 +02:00
Lomanic
6a8ab0308e [net][linux] Go fmt net/net_linux.go 2019-07-11 00:33:41 +02:00
Lomanic
fd0ebc6e03
Merge pull request #701 from wcc526/patch-5
Fix unhandled io.EOF error in net.ConnectionsMax
2019-07-09 22:30:16 +02:00
shirou
6c106d3395
Merge pull request #712 from shirou/feature/fix_freebsd_utmpx_time
fix FreeBSD Users() time
2019-07-09 09:53:58 +09:00
Lomanic
f4e23559a2 [process] Fix #599 cap percent values returned by *Percent() between 0 and 100 2019-07-07 20:24:04 +02:00
Lomanic
4a95469fc9 [process][windows] Fix #607 check pid existence with OpenProcess+GetExitCodeProcess
Reference https://stackoverflow.com/a/600217
2019-07-07 17:32:31 +02:00
Lomanic
4ad0300e1e [process][windows] Remove magic numbers and useless constants 2019-07-07 17:32:26 +02:00
Lomanic
5b15bc623c [process][posix] Fix #607 check pid existence with a signal instead of listing every pids
Reference 0d6b91e916/lockfile_unix.go
2019-07-07 16:41:13 +02:00
Lomanic
428e65cdb0
Merge pull request #710 from shirou/feature/cpu_returns_100
[cpu]: return 100 instead 1 if t1 are bigger than t2
2019-07-07 16:31:47 +02:00
shirou
eb59e7368e
Merge pull request #711 from tonylambiris/tl/add-hfsplus-support
Add support for hfsplus file system
2019-07-07 00:06:42 +09:00
WAKAYAMA shirou
669b2710bf [freebsd]host: change freebsd struct for 386 and arm. 2019-07-06 23:49:57 +09:00
WAKAYAMA shirou
2fd3f03f84 [freebsd][host]: fix Users() return start secs. 2019-07-06 23:45:22 +09:00
Tony Lambiris
80ceab90aa
Add support for hfsplus file system 2019-07-06 08:33:10 -04:00
shirou
86fdae99e1 [cpu]: return 100 instead 1 if t1 are bigger than t2 2019-07-06 11:24:35 +09:00
shirou
0e6ea68690
Merge pull request #707 from Lomanic/issue599
[cpu] WIP #599 cap percent values returned by Percent() between 0 and 100
2019-07-06 11:23:17 +09:00
shirou
14ba67b0ab
Merge pull request #706 from Lomanic/windows-process-nice
[process][windows] Use win32 API in process.Nice() instead of slow WMI call
2019-07-06 11:20:58 +09:00