Commit Graph

1763 Commits

Author SHA1 Message Date
AtakanColak b2a3574216 remove percent 2020-11-09 10:37:31 +03:00
AtakanColak fb44aead39 use ticker and explicit contants 2020-11-09 10:00:22 +03:00
Lomanic 318614d7ed [v3][process][darwin] Fix test Test_Pids_Fail missing testdata folder 2020-11-08 17:26:21 +01:00
Lomanic 995610e109 [process][windows] Fix Nice() test expecting Unix values 2020-11-08 17:13:56 +01:00
Lomanic 5641beec4c [process][darwin] Fix Parent() when lsof returns warnings
Same as #867, the error being:
error strconv.Atoi: parsing "      Output information may be incomplete.": invalid syntax
2020-11-08 17:13:56 +01:00
Lomanic 148a662b06 [process][darwin] Remove Groups() as it's non-functional 2020-11-08 17:13:56 +01:00
Lomanic 64e16cc8c3 [net][darwin] Fix tests with mismatched types 2020-11-08 17:13:56 +01:00
Lomanic 7f0ba43398 [net][darwin][freebsd] Fix tests with func not returning common.ErrNotImplementedError 2020-11-08 17:13:56 +01:00
Lomanic 907e475a45 [v3][process] Fix Test_Process_Status test with new Status() API 2020-11-08 17:13:56 +01:00
Lomanic 29304ebf73 [ci] Implement automatic tests on GH Actions on linux, windows and darwin
Based off 3710bfcc3e/.github/workflows/test.yml
2020-11-08 17:13:56 +01:00
shirou 7e5409b131
Merge pull request #991 from Lomanic/issue849-newer-api
[cpu][linux] Get logical cores in Counts() with non-deprecated kernel API first
2020-11-07 10:53:58 +09:00
Lomanic 976679ee00 [cpu][linux] Get logical cores in Counts() with non-deprecated kernel API first
Implementing https://github.com/giampaolo/psutil/pull/1727#issuecomment-707624964
and bfae1fc4a3
2020-11-07 00:48:53 +01:00
AtakanColak 498a39984d tidy comments 2020-11-06 11:07:02 +03:00
Lomanic e1b5db2987
Merge pull request #984 from bi-zone/udp6-fix 2020-11-05 20:31:19 +01:00
Lomanic 87b3c898bf [doc] Fix links in v3Changes.md 2020-11-05 20:18:12 +01:00
Lomanic 186fbc7fb4 [v3][cpu][windows] Remove exported windows-specific dead code
Users wanting to use this Windows-specific feature can still use github.com/StackExchange/wmi by themselves.
2020-11-05 20:16:23 +01:00
Lomanic f2b8fbd047
Merge pull request #983 from shirou/v3_fix_cpu_windows_struct_name
[cpu][windows] fix CPU struct name on windows.
2020-11-05 18:39:19 +01:00
shirou 6b690e8250
Merge pull request #985 from Lomanic/fix-labeler-ci
Fix labeler CI "HttpError: Resource not accessible by integration" error
2020-11-05 11:16:49 +09:00
Lomanic 596154ddc6 Fix labeler CI "HttpError: Resource not accessible by integration" error
See https://github.com/actions/labeler/issues/12#issuecomment-670967607
2020-11-05 00:08:55 +01:00
MashaSamoylova 860f332c22 Fix getting udp6 ports 2020-11-04 09:32:02 +07:00
AtakanColak 2c98f69e11 add load v2
tidied up common/windows
added load benchmark for load_test
cpu percent is used as load if queue is zero
2020-11-02 16:54:39 +03:00
shirou 9e51e095ad [cpu][windows] fix CPU struct name on windows. 2020-11-02 22:01:27 +09:00
shirou a1e77476b2
Merge pull request #938 from shirou/feature/migration_to_v3
v3 migration
2020-11-01 13:33:05 +09:00
shirou 407a11a7e1 [v3] add to labeler. 2020-11-01 13:27:54 +09:00
shirou 99de861280 [v3] update README 2020-11-01 00:39:46 +09:00
shirou 8e2446b0ac [v3][process] apply #962 2020-10-31 23:39:29 +09:00
shirou 09af60d248 [v3 migration] add more changelog and README. 2020-10-31 23:29:25 +09:00
shirou b7e74218ca [v3 migration] change process.Status returns []string with no letter status string. 2020-10-31 23:29:25 +09:00
shirou 4b5a200e71 [v3 migration] change return type to CgroupCPUStat 2020-10-31 23:29:24 +09:00
shirou 6920de8509 [v3 migration] Fixed temperature sensors detection in Linux #905 2020-10-31 23:29:24 +09:00
shirou 05fef68f42 [v3 migration] change net.[]InterfaceAddr to net.InterfaceAddrList 2020-10-31 23:29:24 +09:00
shirou 33e4b67dfc [v3] rename Label and SerialNumber to all platform from linux specific. 2020-10-31 23:29:24 +09:00
shirou 005a35c436 [v3 migartion] add v3 sourcodes, and change disk.opts to []string 2020-10-31 23:29:24 +09:00
shirou 2f4e0de9bf rename tools to _tools 2020-10-31 23:29:24 +09:00
shirou 1fb8e86fd8 remove unused struct in process_windows.go 2020-10-31 23:29:24 +09:00
shirou 10473900b7 add more JSON incorrect names. 2020-10-31 23:29:24 +09:00
shirou 558b36a764 fix platform dependent exported values. 2020-10-31 23:29:24 +09:00
shirou bdd85e5bc0 fix #545 2020-10-31 23:29:24 +09:00
shirou 9bbeb5bc81 initial commit of v3 migration. 2020-10-31 23:29:24 +09:00
Lomanic f810d518bb
Merge pull request #962 from AtakanColak/fix-ppid-race-961
Fix Windows Ppid Cache Race Condition
2020-10-29 20:52:08 +01:00
shirou bb232c46d3
Merge pull request #980 from shirou/feature/fix_tests_and_not_implemented_error
fix test and openbsd errors.
2020-10-26 22:12:24 +09:00
shirou 95c6cb4308
Merge pull request #978 from shirou/feature/refactor_disk_without_context_functions
[disk] move non-"WithContext()" functions to platform-agnostic files
2020-10-26 22:08:26 +09:00
shirou f377a07e5a fix test and openbsd errors. 2020-10-25 19:06:59 +09:00
shirou 9ffeb8d368
Merge pull request #979 from ajacoutot/openbsd-process
process: unbreak build on OpenBSD
2020-10-25 15:23:49 +09:00
Antoine Jacoutot 013cd610f5 process: unbreak build on OpenBSD
Match FreeBSD code to prevent:
process_openbsd.go:230:10: cannot use k.Groups (type [16]uint32) as type []int32 in return argument
2020-10-24 15:35:19 +02:00
shirou 1f733a99dc [disk] move without context functions to disk.go. 2020-10-24 22:03:58 +09:00
shirou cf222ab258
Merge pull request #975 from shirou/feature/remove_disk_partition_args_on_bsds
Feature/remove disk partition args on bsds
2020-10-24 10:25:30 +09:00
AtakanColak 13602a3824 fix ppid cache race condition #964 2020-10-23 11:38:02 +03:00
AtakanColak 24e6d6d350 add load to windows 2020-10-22 17:44:11 +03:00
shirou f258441486 add more platform to labeler. 2020-10-22 10:07:45 +09:00