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

2608 Commits

Author SHA1 Message Date
shirou
a7e2bdf91c
Merge pull request #1544 from JanDeDobbeleer/master
fix(linux): validate cpu fields length before accessing index
v3.23.10
2023-10-30 22:11:25 +09:00
Jan De Dobbeleer
ac63a5690e
fix(windows): remove log statement 2023-10-30 08:39:26 +01:00
Jan De Dobbeleer
a1eedcae8e
fix(linux): validate cpu fields length before accessing index 2023-10-30 08:35:46 +01:00
shirou
c020a0890e
Merge pull request #1537 from shirou/feat/fix_darwin_host_users
[host][darwin]: fix Users
2023-10-22 11:15:17 +09:00
shirou
4ad4406c03
Merge pull request #1542 from shirou/dependabot/github_actions/actions/checkout-4.1.1
chore(deps): bump actions/checkout from 4.1.0 to 4.1.1
2023-10-18 12:02:51 +09:00
dependabot[bot]
be90da9b83
chore(deps): bump actions/checkout from 4.1.0 to 4.1.1
Bumps [actions/checkout](https://github.com/actions/checkout) from 4.1.0 to 4.1.1.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](8ade135a41...b4ffde65f4)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-18 01:30:37 +00:00
shirou
9c1cf1ca59
Merge pull request #1538 from shirou/dependabot/go_modules/github.com/google/go-cmp-0.6.0
chore(deps): bump github.com/google/go-cmp from 0.5.9 to 0.6.0
2023-10-11 11:55:51 +09:00
dependabot[bot]
2121939c2a
chore(deps): bump github.com/google/go-cmp from 0.5.9 to 0.6.0
Bumps [github.com/google/go-cmp](https://github.com/google/go-cmp) from 0.5.9 to 0.6.0.
- [Release notes](https://github.com/google/go-cmp/releases)
- [Commits](https://github.com/google/go-cmp/compare/v0.5.9...v0.6.0)

---
updated-dependencies:
- dependency-name: github.com/google/go-cmp
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-11 01:33:34 +00:00
shirou
4b46f2b70c [host][darwin]: fix Users 2023-10-10 23:05:52 +09:00
shirou
5ee64c6190
Merge pull request #1531 from shirou/dependabot/github_actions/actions/checkout-4.1.0
chore(deps): bump actions/checkout from 4.0.0 to 4.1.0
2023-10-07 22:45:46 +09:00
dependabot[bot]
3389897156
chore(deps): bump actions/checkout from 4.0.0 to 4.1.0
Bumps [actions/checkout](https://github.com/actions/checkout) from 4.0.0 to 4.1.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](3df4ab11eb...8ade135a41)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-07 13:36:11 +00:00
shirou
21fe65fb5c
Merge pull request #1536 from shirou/feat/skip_nice_on_ci
[process][darwin]: skip process.Nice test if darwin on GitHub Action
2023-10-07 22:35:20 +09:00
shirou
83427f964f [process][darwin]: skip process.Nice test if darwin on GitHub Action
fix: https://github.com/shirou/gopsutil/issues/1532
2023-10-07 13:27:39 +00:00
shirou
48960df563
Merge pull request #1535 from shirou/dependabot/go_modules/golang.org/x/sys-0.13.0
chore(deps): bump golang.org/x/sys from 0.12.0 to 0.13.0
2023-10-07 20:53:01 +09:00
dependabot[bot]
f1405efa25
chore(deps): bump golang.org/x/sys from 0.12.0 to 0.13.0
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.12.0 to 0.13.0.
- [Commits](https://github.com/golang/sys/compare/v0.12.0...v0.13.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sys
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-10-06 01:53:20 +00:00
shirou
826376d46a
Merge pull request #1530 from darkgeek/feature/netbsd-arm64-port
Add some support for NetBSD
v3.23.9
2023-09-30 11:50:26 +09:00
Justin Yang
66ee833b9e Makefile: revert back to original one 2023-09-29 16:49:18 +08:00
Justin Yang
826037fe4b Fix build_test on amd64 NetBSD 2023-09-29 16:36:44 +08:00
Justin Yang
7ffb24dbe3
Merge branch 'shirou:master' into feature/netbsd-arm64-port 2023-09-23 16:02:34 +08:00
Justin Yang
def3572629 format the code 2023-09-17 01:43:13 +08:00
Justin Yang
4a46201e00 cpu && host: fix compile time errors 2023-09-16 17:44:58 +08:00
Justin Yang
734a7a6e55 disk: we should use frsize as the real block size 2023-09-16 15:49:22 +08:00
Justin Yang
dd0253b0ec disk: fix various bugs 2023-09-16 04:03:33 +08:00
shirou
2fabf15a16
Merge pull request #1527 from tossp/add-load-for-windows
[load][windows] Fix DATA RACE in load. Avg()
2023-09-14 23:11:16 +09:00
TossPig
03d43fb5a2
[load][windows] Fix DATA RACE in load. Avg()
fixed #1526
2023-09-14 05:05:59 +08:00
Matthieu MOREL
c806740b34
ci(lint): ensure io/ioutil replacement (#1525)
* ci(lint): enure ioutil replacement

Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>

* Update host_solaris.go
* Update process_linux_test.go
* Update net_linux_test.go
* Update net_linux_test.go
* Update process_test.go
* Update process_linux_test.go
* Update process_linux_test.go

---------

Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
2023-09-12 21:14:04 +09:00
Justin Yang
319f5ea6e5 disk: small improvement, but still doesn't work 2023-09-12 00:16:22 +08:00
shirou
0e9f13304d
Merge pull request #1524 from shirou/feature/replace_ioutil
chore: replace deprecated ioutil package to os and io
2023-09-11 08:56:26 +09:00
Justin Yang
1136aa25da disk: code can be compiled now, but test still failed though 2023-09-10 23:37:30 +08:00
Justin Yang
ec817bfa68 disk: code cleanup (not finish yet) 2023-09-10 23:33:42 +08:00
Justin Yang
caafa49ed1 disk: code cleanup 2023-09-10 02:40:14 +08:00
Justin Yang
6100e33de2 mem: code cleanup 2023-09-10 02:31:10 +08:00
Justin Yang
e82d2e4ca8 host: enable uptime for NetBSD 2023-09-09 21:25:51 +08:00
Justin Yang
b6a10e04e7 disk: Implement Usage for NetBSD 2023-09-09 20:32:59 +08:00
Justin Yang
7df86f0f6a Add disk partitions support for NetBSD 2023-09-09 17:47:44 +08:00
Lomanic
60484418d3
Merge pull request #1521 from shirou/dependabot/github_actions/actions/checkout-4.0.0
chore(deps): bump actions/checkout from 3.6.0 to 4.0.0
2023-09-08 21:30:26 +02:00
shirou
0665cafa1b chore: replace deprecated ioutil package to os and io 2023-09-08 17:05:14 +00:00
shirou
cdd7dae8c7
Merge pull request #1523 from shirou/dependabot/github_actions/actions/cache-3.3.2
chore(deps): bump actions/cache from 3.3.1 to 3.3.2
2023-09-08 11:34:42 +09:00
dependabot[bot]
1d4b8c3989
chore(deps): bump actions/cache from 3.3.1 to 3.3.2
Bumps [actions/cache](https://github.com/actions/cache) from 3.3.1 to 3.3.2.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](88522ab9f3...704facf57e)

---
updated-dependencies:
- dependency-name: actions/cache
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-08 01:37:26 +00:00
shirou
de26169f19
Merge pull request #1522 from shirou/dependabot/github_actions/actions/upload-artifact-3.1.3
chore(deps): bump actions/upload-artifact from 3.1.2 to 3.1.3
2023-09-07 10:27:58 +09:00
dependabot[bot]
2d2033ed7d
chore(deps): bump actions/upload-artifact from 3.1.2 to 3.1.3
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 3.1.2 to 3.1.3.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](0b7f8abb15...a8a3f3ad30)

---
updated-dependencies:
- dependency-name: actions/upload-artifact
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-07 01:12:39 +00:00
dependabot[bot]
eadf3f7a33
chore(deps): bump actions/checkout from 3.6.0 to 4.0.0
Bumps [actions/checkout](https://github.com/actions/checkout) from 3.6.0 to 4.0.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](f43a0e5ff2...3df4ab11eb)

---
updated-dependencies:
- dependency-name: actions/checkout
  dependency-type: direct:production
  update-type: version-update:semver-major
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-05 01:50:24 +00:00
shirou
d80af8bf10
Merge pull request #1519 from kevinconaway/kevinconaway/mem-anonhugepages
Add support for reading AnonHugePages from /proc/meminfo
2023-09-04 21:59:05 +09:00
shirou
680de57df2
Merge pull request #1520 from shirou/dependabot/go_modules/golang.org/x/sys-0.12.0
chore(deps): bump golang.org/x/sys from 0.11.0 to 0.12.0
2023-09-04 11:24:13 +09:00
dependabot[bot]
85d37b91b3
chore(deps): bump golang.org/x/sys from 0.11.0 to 0.12.0
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.11.0 to 0.12.0.
- [Commits](https://github.com/golang/sys/compare/v0.11.0...v0.12.0)

---
updated-dependencies:
- dependency-name: golang.org/x/sys
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>
2023-09-04 01:53:34 +00:00
Justin Yang
302751d509 disk: start porting to NetBSD, far from complete 2023-09-03 23:08:54 +08:00
Justin Yang
6a4ec32f3b cpu: remove wrong info copied from openbsd 2023-09-02 23:01:23 +08:00
Justin Yang
4e662561c2 mem: Add support for NetBSD 2023-09-02 22:57:30 +08:00
Kevin Conaway
7f4efa5358 Add support for reading AnonHugePages from /proc/meminfo
This commit adds support for reading the `AnonHugePages` field from `/proc/meminfo`.

The values in this field allow monitoring the [THP](https://www.kernel.org/doc/Documentation/vm/transhuge.txt) usage by systems that use this type of memory
2023-08-31 15:06:23 -04:00
shirou
faad806080
Merge pull request #1518 from shirou/feature/remove_circleci
chore: change CIRCLECI environment variable to CI.
v3.23.8
2023-08-30 23:16:23 +09:00