Justin Yang
def3572629
format the code
2 years ago
Justin Yang
4a46201e00
cpu && host: fix compile time errors
2 years ago
Justin Yang
734a7a6e55
disk: we should use frsize as the real block size
2 years ago
Justin Yang
dd0253b0ec
disk: fix various bugs
2 years ago
Justin Yang
319f5ea6e5
disk: small improvement, but still doesn't work
2 years ago
Justin Yang
1136aa25da
disk: code can be compiled now, but test still failed though
2 years ago
Justin Yang
ec817bfa68
disk: code cleanup (not finish yet)
2 years ago
Justin Yang
caafa49ed1
disk: code cleanup
2 years ago
Justin Yang
6100e33de2
mem: code cleanup
2 years ago
Justin Yang
e82d2e4ca8
host: enable uptime for NetBSD
2 years ago
Justin Yang
b6a10e04e7
disk: Implement Usage for NetBSD
2 years ago
Justin Yang
7df86f0f6a
Add disk partitions support for NetBSD
2 years ago
Justin Yang
302751d509
disk: start porting to NetBSD, far from complete
2 years ago
Justin Yang
6a4ec32f3b
cpu: remove wrong info copied from openbsd
2 years ago
Justin Yang
4e662561c2
mem: Add support for NetBSD
2 years ago
Justin Yang
2684012ab2
Initial support for NetBSD.
...
Currently the changes are all copied from shirou/gopsutil#1364
2 years ago
shirou
89575bdf5a
Merge pull request #1513 from shirou/dependabot/github_actions/actions/checkout-3.6.0
...
chore(deps): bump actions/checkout from 3.5.3 to 3.6.0
2 years ago
dependabot[bot]
47860a93c2
chore(deps): bump actions/checkout from 3.5.3 to 3.6.0
...
Bumps [actions/checkout](https://github.com/actions/checkout ) from 3.5.3 to 3.6.0.
- [Release notes](https://github.com/actions/checkout/releases )
- [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md )
- [Commits](c85c95e3d7...f43a0e5ff2
)
---
updated-dependencies:
- dependency-name: actions/checkout
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2 years ago
shirou
6084c1e2a4
Merge pull request #1508 from gdvalle/gtd.disk.serial-num-fix
...
fix IOCounters() SerialNumber enumeration
2 years ago
Greg Dallavalle
0a23dc690f
comment cleanup
2 years ago
shirou
8bcde848c1
Merge pull request #1504 from shirou/feature/host_remove_double_quote_on_lsb
...
[host][linux]: remove double quote from lsb release info
2 years ago
Greg Dallavalle
b2d1f05f08
update comment
2 years ago
Greg
aa4c84c6b3
Update disk/disk_linux.go
...
Co-authored-by: shirou <shirou.faw@gmail.com>
2 years ago
Greg Dallavalle
0ca6266393
fix IOCounters() SerialNumber enumeration
2 years ago
shirou
d428168624
Merge pull request #1506 from shirou/dependabot/github_actions/golangci/golangci-lint-action-3.7.0
...
chore(deps): bump golangci/golangci-lint-action from 3.6.0 to 3.7.0
2 years ago
dependabot[bot]
7e5f28a19a
chore(deps): bump golangci/golangci-lint-action from 3.6.0 to 3.7.0
...
Bumps [golangci/golangci-lint-action](https://github.com/golangci/golangci-lint-action ) from 3.6.0 to 3.7.0.
- [Release notes](https://github.com/golangci/golangci-lint-action/releases )
- [Commits](639cd343e1...3a91952989
)
---
updated-dependencies:
- dependency-name: golangci/golangci-lint-action
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2 years ago
shirou
3748c19402
[host][linux]: remove double quote from lsb release info
...
fix: #1502
2 years ago
shirou
8ecc0c6804
Merge pull request #1501 from ozanh/master
...
fix: fixed windows disk package leaks
2 years ago
Ozan HACIBEKİROĞLU
1ed7ea75d7
fix: fixed windows disk package leaks
...
- fixed goroutine leak in PartitionsWithContext
- closed registry handle in init
2 years ago
shirou
3bddb2a785
Merge pull request #1499 from shirou/dependabot/go_modules/github.com/tklauser/go-sysconf-0.3.12
...
chore(deps): bump github.com/tklauser/go-sysconf from 0.3.11 to 0.3.12
2 years ago
shirou
2e6d50e11d
Merge pull request #1500 from shirou/dependabot/github_actions/actions/setup-go-4.1.0
...
chore(deps): bump actions/setup-go from 4.0.1 to 4.1.0
2 years ago
dependabot[bot]
95d458e650
chore(deps): bump actions/setup-go from 4.0.1 to 4.1.0
...
Bumps [actions/setup-go](https://github.com/actions/setup-go ) from 4.0.1 to 4.1.0.
- [Release notes](https://github.com/actions/setup-go/releases )
- [Commits](fac708d667...93397bea11
)
---
updated-dependencies:
- dependency-name: actions/setup-go
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2 years ago
dependabot[bot]
b8b6f3d675
chore(deps): bump github.com/tklauser/go-sysconf from 0.3.11 to 0.3.12
...
Bumps [github.com/tklauser/go-sysconf](https://github.com/tklauser/go-sysconf ) from 0.3.11 to 0.3.12.
- [Release notes](https://github.com/tklauser/go-sysconf/releases )
- [Commits](https://github.com/tklauser/go-sysconf/compare/v0.3.11...v0.3.12 )
---
updated-dependencies:
- dependency-name: github.com/tklauser/go-sysconf
dependency-type: direct:production
update-type: version-update:semver-patch
...
Signed-off-by: dependabot[bot] <support@github.com>
2 years ago
shirou
cbd528875a
Merge pull request #1498 from chouquette/fix_linux_mem_metrics
...
mem: linux: fix vmstat field names
2 years ago
Hugo Beauzée-Luyssen
8181a441a8
mem: linux: fix vmstat field names
...
The field names are read from /proc/vmstat were capitalized as their
output fields by mistake
2 years ago
shirou
78feb45202
Merge pull request #1496 from shirou/dependabot/go_modules/golang.org/x/sys-0.11.0
...
chore(deps): bump golang.org/x/sys from 0.10.0 to 0.11.0
2 years ago
dependabot[bot]
9d8e56e0f7
chore(deps): bump golang.org/x/sys from 0.10.0 to 0.11.0
...
Bumps [golang.org/x/sys](https://github.com/golang/sys ) from 0.10.0 to 0.11.0.
- [Commits](https://github.com/golang/sys/compare/v0.10.0...v0.11.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>
2 years ago
shirou
31d6b3089d
Merge pull request #1495 from kishen-v/powerISACheck
...
Enable setting of vendor and related information for all Power versions
2 years ago
shirou
0b4d681d64
Merge pull request #1488 from Lomanic/issue1485
...
[process][posix] Realign process.Name() with python psutil to return same value on python3 scripts processes
2 years ago
Kishen V
63e0b63ab8
Enable setting of vendor and related information for all Power versions
2 years ago
shirou
c43eaea6a7
Merge pull request #1492 from shirou/dependabot/github_actions/actions/labeler-4.3.0
...
chore(deps): bump actions/labeler from 4.2.0 to 4.3.0
2 years ago
dependabot[bot]
9421df8699
chore(deps): bump actions/labeler from 4.2.0 to 4.3.0
...
Bumps [actions/labeler](https://github.com/actions/labeler ) from 4.2.0 to 4.3.0.
- [Release notes](https://github.com/actions/labeler/releases )
- [Commits](0967ca812e...ac9175f8a1
)
---
updated-dependencies:
- dependency-name: actions/labeler
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2 years ago
Lomanic
8b96d2e9e2
[process][posix] Realign process.Name() with python psutil to return same value on python3 scripts processes
...
e2c79a1
started to blindly set the process name to the full path (instead of the basename) of the cmdline exectuable
if the process name from the process comm was truncated on linux. Python psutil never did that, and this is just wrong
for python (or any executable interpreted script) where the process name is not the interpreter binary but the script
itself.
A new test to check process name value against psutil value is added here, which would hopefully catch any potential
future changes in psutil.
Reverts #542
Fixes #1485
2 years ago
shirou
5081a3dcf9
Merge pull request #1486 from elfranne/patch-1
...
cpu_percent and memory_percent Readme
2 years ago
shirou
042e63609b
Merge pull request #1489 from shirou/dependabot/go_modules/golang.org/x/sys-0.10.0
...
chore(deps): bump golang.org/x/sys from 0.9.0 to 0.10.0
2 years ago
dependabot[bot]
99c67a47e2
chore(deps): bump golang.org/x/sys from 0.9.0 to 0.10.0
...
Bumps [golang.org/x/sys](https://github.com/golang/sys ) from 0.9.0 to 0.10.0.
- [Commits](https://github.com/golang/sys/compare/v0.9.0...v0.10.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>
2 years ago
Lomanic
c0f3eb1dfb
[process] Remove all noisy and useless Test_AllProcesses_X tests
...
These tests can't fail more than their invidiual counterparts and produce an incredibly verbose output
2 years ago
shirou
f08589cdac
Merge pull request #1487 from shirou/dependabot/github_actions/actions/labeler-4.2.0
...
chore(deps): bump actions/labeler from 4.1.0 to 4.2.0
2 years ago
dependabot[bot]
3a5aa800b7
chore(deps): bump actions/labeler from 4.1.0 to 4.2.0
...
Bumps [actions/labeler](https://github.com/actions/labeler ) from 4.1.0 to 4.2.0.
- [Release notes](https://github.com/actions/labeler/releases )
- [Commits](9fcb2c2f55...0967ca812e
)
---
updated-dependencies:
- dependency-name: actions/labeler
dependency-type: direct:production
update-type: version-update:semver-minor
...
Signed-off-by: dependabot[bot] <support@github.com>
2 years ago
Elfranne
b41de48761
cpu_percent and memory_percent update
2 years ago