Aman Gupta
34b030b41c
Ignore getFileSystems errors when requesting all partitions
2019-07-30 17:59:09 -07:00
Aman Gupta
ea0f864aef
ignore /proc/filesystems errors on android
2019-07-22 13:09:37 -07: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
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
shirou
4c8b404ee5
Merge pull request #708 from Lomanic/windows-snapprocess-loop
...
[process][windows] Deduplicate repeated code in CreateToolhelp32Snapshot related functions
v2.19.6
2019-06-27 23:23:59 +09:00
Lomanic
d7405fd873
[disk][linux] Follow symlinks with filepath.EvalSymlinks for LVM volumes
...
See #686
2019-06-23 17:38:42 +02:00
Lomanic
97328c4ed4
Merge pull request #686 from tonylambiris/tl/check-for-logical-volumes
...
Tl/check for logical volumes
2019-06-23 17:26:55 +02:00
Lomanic
f036e8b9e8
[process][windows] Deduplicate repeated code in CreateToolhelp32Snapshot related functions
2019-06-23 17:00:41 +02:00
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
2019-06-23 16:14:27 +02:00
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.
2019-06-23 15:52:01 +02:00
Lomanic
99169acbd8
Merge pull request #704 from josedh/master
...
preventing file open and bad defer close call
2019-06-23 15:50:08 +02:00
Jose De La O
258343806a
Preventing file open and bad defer close. Allocating mem as late as
...
possible
2019-06-21 17:26:52 -04:00
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.
2019-06-18 22:41:35 +02:00
shirou
13375e2f9c
Merge pull request #705 from Lomanic/issue586
...
[process][windows] Fix #586 use win32 API in process.Exe() instead of slow WMI call
2019-06-18 08:05:37 +09:00
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)
2019-06-16 23:03:27 +02:00
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`
2019-06-12 11:37:08 +08:00
Lomanic
35f21af98a
Merge pull request #699 from harpchad/solaris_cpu
...
Add support fo Solaris cpu times (idle, sys, user, iowait) in cpu_solaris
2019-06-08 19:53:38 +02:00
Chad Harp
8c6072d111
Cast bytes to string
2019-06-07 07:39:57 -05:00
shirou
a83baef6e4
Merge pull request #698 from picatz/fix-platformFamily-on-macOS
...
Update host_darwin.go
2019-06-04 23:58:34 +09:00
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
2019-06-03 19:43:32 +02:00
Lomanic
c4e08a3559
Merge pull request #700 from ArtieReus/sles15-quotes
...
trim quotes when reading from os-release
2019-06-03 14:41:26 +02:00
Arturo Reuschenbach Puncernau
eb15d06a52
trim quotes when reading from os-release
2019-06-03 14:21:04 +02:00
Chad Harp
16b37cc9c2
Modify cpu_solaris to support Sorlais 10
2019-06-02 09:58:35 -05:00
Chad Harp
354718bdd8
Add support for Solaris CPU times
2019-06-01 15:05:46 -05:00
shirou
5335e3fd50
Merge pull request #685 from cmattoon/conntrack-stat
...
Adds ConntrackStats (/proc/net/stat/nf_conntrack)
v2.19.05
2019-06-01 11:50:09 +09:00
shirou
07863cab0c
[host]linux: add #688 diff which is removed after merging #689
2019-06-01 11:31:00 +09:00
shirou
b2cbc26504
Merge pull request #689 from ZymoticB/td-remove-cycle
...
Remove cycle between process and host packages
2019-06-01 11:27:28 +09:00
shirou
7c2ac48f84
Merge branch 'master' into td-remove-cycle
2019-06-01 11:26:59 +09:00
shirou
3d9d5e60ef
Merge pull request #688 from asnowfox/master
...
use /proc/buc/pci/devices to identify a VM is a guest
2019-06-01 11:18:40 +09:00
shirou
d8686bcd5c
Merge pull request #675 from marcv81/fix_665_v2
...
Fix for #665
2019-06-01 10:28:14 +09:00
shirou
4b629897d2
Merge pull request #647 from omar-polo/master
...
[OpenBSD][CPU] fix per-cpu
2019-06-01 10:24:59 +09:00
Kent 'picat' Gruber
e507f44421
Update host_darwin.go
...
Copy+pasta got me again! 🍝
No new variable on the left of `:=` 😂
2019-05-31 13:19:04 -04:00
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.
2019-05-31 13:13:06 -04:00
Lomanic
3af6e1ffe7
[host][linux] Properly handle double quotes in /etc/os-release in PlatformInformation
2019-05-31 18:04:45 +02:00