Commit Graph

1453 Commits (c141152a7b8f59b63e060fa8450f5cd5e7196dfb)
 

Author SHA1 Message Date
Lomanic 428e65cdb0
Merge pull request #710 from shirou/feature/cpu_returns_100
[cpu]: return 100 instead 1 if t1 are bigger than t2
6 years ago
shirou eb59e7368e
Merge pull request #711 from tonylambiris/tl/add-hfsplus-support
Add support for hfsplus file system
6 years ago
WAKAYAMA shirou 669b2710bf [freebsd]host: change freebsd struct for 386 and arm. 6 years ago
WAKAYAMA shirou 2fd3f03f84 [freebsd][host]: fix Users() return start secs. 6 years ago
Tony Lambiris 80ceab90aa
Add support for hfsplus file system 6 years ago
shirou 86fdae99e1 [cpu]: return 100 instead 1 if t1 are bigger than t2 6 years ago
shirou 0e6ea68690
Merge pull request #707 from Lomanic/issue599
[cpu] WIP #599 cap percent values returned by Percent() between 0 and 100
6 years ago
shirou 14ba67b0ab
Merge pull request #706 from Lomanic/windows-process-nice
[process][windows] Use win32 API in process.Nice() instead of slow WMI call
6 years ago
shirou 4c8b404ee5
Merge pull request #708 from Lomanic/windows-snapprocess-loop
[process][windows] Deduplicate repeated code in CreateToolhelp32Snapshot related functions
6 years ago
Lomanic d7405fd873 [disk][linux] Follow symlinks with filepath.EvalSymlinks for LVM volumes
See #686
6 years ago
Lomanic 97328c4ed4
Merge pull request #686 from tonylambiris/tl/check-for-logical-volumes
Tl/check for logical volumes
6 years ago
Lomanic f036e8b9e8 [process][windows] Deduplicate repeated code in CreateToolhelp32Snapshot related functions 6 years ago
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
6 years ago
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.
6 years ago
Lomanic 99169acbd8
Merge pull request #704 from josedh/master
preventing file open and bad defer close call
6 years ago
Jose De La O 258343806a Preventing file open and bad defer close. Allocating mem as late as
possible
6 years ago
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.
6 years ago
shirou 13375e2f9c
Merge pull request #705 from Lomanic/issue586
[process][windows] Fix #586 use win32 API in process.Exe() instead of slow WMI call
6 years ago
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)
6 years ago
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`
6 years ago
Lomanic 35f21af98a
Merge pull request #699 from harpchad/solaris_cpu
Add support fo Solaris cpu times (idle, sys, user, iowait) in cpu_solaris
6 years ago
Chad Harp 8c6072d111 Cast bytes to string 6 years ago
shirou a83baef6e4
Merge pull request #698 from picatz/fix-platformFamily-on-macOS
Update host_darwin.go
6 years ago
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
6 years ago
Lomanic c4e08a3559
Merge pull request #700 from ArtieReus/sles15-quotes
trim quotes when reading from os-release
6 years ago
Arturo Reuschenbach Puncernau eb15d06a52 trim quotes when reading from os-release 6 years ago
Chad Harp 16b37cc9c2 Modify cpu_solaris to support Sorlais 10 6 years ago
Chad Harp 354718bdd8 Add support for Solaris CPU times 6 years ago
shirou 5335e3fd50
Merge pull request #685 from cmattoon/conntrack-stat
Adds ConntrackStats (/proc/net/stat/nf_conntrack)
6 years ago
shirou 07863cab0c [host]linux: add #688 diff which is removed after merging #689 6 years ago
shirou b2cbc26504
Merge pull request #689 from ZymoticB/td-remove-cycle
Remove cycle between process and host packages
6 years ago
shirou 7c2ac48f84
Merge branch 'master' into td-remove-cycle 6 years ago
shirou 3d9d5e60ef
Merge pull request #688 from asnowfox/master
use /proc/buc/pci/devices to identify a VM is a guest
6 years ago
shirou d8686bcd5c
Merge pull request #675 from marcv81/fix_665_v2
Fix for #665
6 years ago
shirou 4b629897d2
Merge pull request #647 from omar-polo/master
[OpenBSD][CPU] fix per-cpu
6 years ago
Kent 'picat' Gruber e507f44421 Update host_darwin.go
Copy+pasta got me again! 🍝

No new variable on the left of `:=` 😂
6 years ago
Kent 'picat' Gruber d13ba02ef0 Update host_darwin.go
The /System/Library/CoreServices/ServerVersion.plist exists on macOS servers , but not on a workstation such as my laptop. The actual terminoly is mostly borrowed from the windows equivalent as @Lomanic suggested. In theory, this should make interpreting the results from the two platforms a bit more consistent.

Note: The macOS server application can be installed on almost any macOS workstation to make it a server that can manage other apple devices.
6 years ago
Lomanic 3af6e1ffe7 [host][linux] Properly handle double quotes in /etc/os-release in PlatformInformation 6 years ago
Lomanic a0019d431c
Merge pull request #691 from ArtieReus/sles15
added sles to the suse platform family
6 years ago
Lomanic 3fb9243fc2 [net][windows] Fix #693 use MIB_IF_ROW2/GetIfEntry2 to get real uint64 values from win32 API 6 years ago
Tyler Dixon 4e81681ab3 code review 6 years ago
Arturo Reuschenbach Puncernau 2a0b67d19c added sles to the suse platform family 6 years ago
Tyler Dixon a02925055c Remove cycle between process and host packages
gopsutil is a transitive dependency of another project that I am integrating
into an internal build system. We target multiple platforms and as a part
of the build system for the large internal repo, we calculate the build
graph used to determine what targets have changed and need to be build /
tested as a single DAG for all platforms.

gopsutil currently does not form a DAG if linux and any other platform are
considered at the same time. linux is the only platform where the process
package imports the host package.

To remove this cycle, the relevant methods have been moved to internal/common
with the linux build tag and are consumed the host and process packages.
6 years ago
litong 6dfd8d56bb Merge branch 'master' of https://github.com/asnowfox/gopsutil 6 years ago
litong 119f26c1df use bus/pci/devices to identify a vm guest 6 years ago
Snow Fox 0cad0faa11
Merge pull request #1 from shirou/master
merge master
6 years ago
Tony Lambiris 8037dc42c8
Add a check for logical volume paths 6 years ago
Tony Lambiris 9f8e8d474b
Merge remote-tracking branch 'upstream/master' 6 years ago
shirou e146c2e08a
Merge pull request #677 from shirou/feature/remove_stolen_from_cpu
[cpu]: remove unused field Stolen
6 years ago
shirou 3e23fdab39
Merge pull request #684 from Lomanic/issue670
[process][darwin] Fix #670 remove call to common.Pipeline (prone to race condition)
6 years ago