Commit Graph

2669 Commits (a19cedeb30ceea8dff0407419509f00774629981)
 

Author SHA1 Message Date
shirou a19cedeb30
Merge pull request #1727 from uubulb/fix_sensors_darwin_arm64
sensors: avoid passing nil pointer to CFArrayGetCount
shirou c9da2cc0aa
Merge pull request #1731 from Lomanic/issue1645
[cpu][disk][netbsd] Generate arm-specific definitions
shirou 44c71b62c0
Merge pull request #1722 from uubulb/fix_windows_mem
fix(mem): possible memory leak on Windows
shirou 30457973b5
Merge pull request #1735 from shirou/dependabot/github_actions/actions/upload-artifact-4.4.3
chore(deps): bump actions/upload-artifact from 4.4.0 to 4.4.3
shirou 7422a58e32
Merge pull request #1733 from shirou/dependabot/github_actions/actions/cache-4.1.1
chore(deps): bump actions/cache from 4.0.2 to 4.1.1
dependabot[bot] c30c83bf4a
chore(deps): bump actions/upload-artifact from 4.4.0 to 4.4.3
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4.4.0 to 4.4.3.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](50769540e7...b4b15b8c7c)

---
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>
dependabot[bot] 9fc4f64913
chore(deps): bump actions/cache from 4.0.2 to 4.1.1
Bumps [actions/cache](https://github.com/actions/cache) from 4.0.2 to 4.1.1.
- [Release notes](https://github.com/actions/cache/releases)
- [Changelog](https://github.com/actions/cache/blob/main/RELEASES.md)
- [Commits](0c45773b62...3624ceb22c)

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

Signed-off-by: dependabot[bot] <support@github.com>
Lomanic 68512056e8
Merge pull request #1729 from shirou/dependabot/github_actions/actions/checkout-4.2.1
chore(deps): bump actions/checkout from 4.2.0 to 4.2.1
Lomanic ec973203e9 [disk][netbsd] Generate cpu_netbsd_arm.go via mktypes.sh
Lomanic c37a5eba8c [cpu][netbsd] Fix "undefined: cpuTimes" error at compile time on arm
Fixes #1645
dependabot[bot] 9732546382
chore(deps): bump actions/checkout from 4.2.0 to 4.2.1
Bumps [actions/checkout](https://github.com/actions/checkout) from 4.2.0 to 4.2.1.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](d632683dd7...eef61447b9)

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

Signed-off-by: dependabot[bot] <support@github.com>
uubulb 10d9c04c2e sensors: avoid passing nil pointer to CFArrayGetCount
uubulb 3773f6fe43 fix(mem): possible memory leak on Windows
shirou 45e3591650
Merge pull request #1714 from shirou/dependabot/github_actions/actions/checkout-4.2.0
chore(deps): bump actions/checkout from 4.1.7 to 4.2.0
dependabot[bot] 3c43ac0060
chore(deps): bump actions/checkout from 4.1.7 to 4.2.0
Bumps [actions/checkout](https://github.com/actions/checkout) from 4.1.7 to 4.2.0.
- [Release notes](https://github.com/actions/checkout/releases)
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md)
- [Commits](692973e3d9...d632683dd7)

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

Signed-off-by: dependabot[bot] <support@github.com>
shirou 023f0cf765
Merge pull request #1721 from shirou/dependabot/github_actions/golangci/golangci-lint-action-6.1.1
chore(deps): bump golangci/golangci-lint-action from 6.1.0 to 6.1.1
dependabot[bot] b048ca575d
chore(deps): bump golangci/golangci-lint-action from 6.1.0 to 6.1.1
Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action) from 6.1.0 to 6.1.1.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases)
- [Commits](aaa42aa062...971e284b60)

---
updated-dependencies:
- dependency-name: golangci/golangci-lint-action
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <support@github.com>
shirou 2e10d9f7d0
Merge pull request #1715 from henrygd/master
Fix error message typo in sensors_linux
Henry Dollman 112f4c00b7 Fix error message typo in sensors_linux
shirou 7ec134321c
Merge pull request #1713 from joshiste/joshiste-precise-create-time
Fix resolution for process create time limited to seconds
shirou 4140cda4ac
Merge pull request #1702 from uubulb/purego_darwin
feat(cpu, mem, sensors, disk, process)(darwin): cgo-free implementations
Johannes Edmeier 3dc12249d3
Allow subsecont precision for process create time
uubulb f56b53a155 update purego
shirou fdc3c05c92
Merge pull request #1712 from al-online/numfds_for_windows
implement process:NumFDs for Windows
huang 462736cb8b add comment for NumFDsWithContext
UUBulb 86b68e8d4f
Merge branch 'master' into purego_darwin
uubulb 9e6efdb991 update disk & cpu & process
huang cbc32afb65 implement NumFDs for Windows
shirou 6c06ac987e
Merge pull request #1707 from atoulme/add_proc_mountinfo
[common] add HOST_PROC_MOUNTINFO to EnvMap
shirou 7802a18557
Merge pull request #1703 from shirou/dependabot/go_modules/golang.org/x/sys-0.25.0
chore(deps): bump golang.org/x/sys from 0.24.0 to 0.25.0
shirou e89f21d7dc
Merge pull request #1706 from Lomanic/issue1698
[process][darwin][freebsd][linux][openbsd] Make process.Children not reliant on pgrep
Antoine Toulme 811185d3fe [common] add HOST_PROC_MOUNTINFO to EnvMap
Lomanic 76ccf0d220 [process][darwin][freebsd][linux][openbsd] Make process.Children not reliant on pgrep
pgrep -P $PID exits with status of 1 (and nothing in stdout nor stderr) both if
a process doesn't exist or it doesn't have child processes, so we don't
use it anymore on these OSes. We sort PIDs as pgrep did.

Also deprecate the ErrorNoChildren error when there are no child processes,
this is erroneous (simply check for the length of the returned slice, plus
this is not an error per se), this was only returned on linux anyway.

Fixes #1698
shirou 784157497b
Merge pull request #1705 from shirou/feat/remove_godoc_and_coverall
fix: remove coverall and godocs.io badge from README
shirou 97b1aaee94 fix: remove coverall and godocs.io badge from README
dependabot[bot] f824d50add
chore(deps): bump golang.org/x/sys from 0.24.0 to 0.25.0
Bumps [golang.org/x/sys](https://github.com/golang/sys) from 0.24.0 to 0.25.0.
- [Commits](https://github.com/golang/sys/compare/v0.24.0...v0.25.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>
uubulb 701a74be41 feat(cpu, mem, sensors)(darwin): cgo-free implementations
shirou 211eb8ccb4
Merge pull request #1701 from shirou/dependabot/github_actions/actions/upload-artifact-4.4.0
chore(deps): bump actions/upload-artifact from 4.3.6 to 4.4.0
dependabot[bot] 050902aeaa
chore(deps): bump actions/upload-artifact from 4.3.6 to 4.4.0
Bumps [actions/upload-artifact](https://github.com/actions/upload-artifact) from 4.3.6 to 4.4.0.
- [Release notes](https://github.com/actions/upload-artifact/releases)
- [Commits](834a144ee9...50769540e7)

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

Signed-off-by: dependabot[bot] <support@github.com>
shirou 74cb403730
Merge pull request #1694 from fivitti/master
Fix panic on OpenBSD and FreeBSD systems if KinfoProc size has an unexpected size
shirou 7404c1f39d
Merge pull request #1699 from shirou/feat/win_disk_ignore_remote_drive_on_error
[disk][windows]: ignore network drive when not ready
shirou 72d3ba4191 [disk][windows]: ignore network drive when not ready
Cnpt 829f2fafbd
Refactoring the algorithm for calculating CPU usage (#1692)
refactor(process): Refactoring the algorithm for calculating CPU usage
shirou 2a37a1d32b
Merge pull request #1691 from pgimalac/pgimalac/fix-proc-smaps-parsing
Fix parsing of /proc/pid/smaps when path is empty
shirou 2c51005a94
Merge pull request #1697 from shirou/feature/fix_golangclilint_gosec
fix golangcilint errors, ignore gosec G115
shirou 37f531010d fix golangcilint errors, ignore gosec G115
shirou 904a5a4842
Merge pull request #1695 from Yurunsoft/patch-1
Fix badge link in README.md
Yurun 39c93c6a20
Fix badge link in README.md
Slawek Figiel 977269202e fix: handle invalid KinfoProc size on BSD systems
Pierre Gimalac d4ac231298
Merge branch 'master' of github.com:pgimalac/gopsutil into pgimalac/fix-proc-smaps-parsing