Commit Graph

286 Commits (34ac457e154c695cf35ed79ffa15eb0966c650bb)

Author SHA1 Message Date
shirou 34ac457e15
Merge pull request #1848 from secDre4mer/master
Fix issues with GetLastError() usage
6 days ago
Matthieu MOREL 6a79b392ac fix ignore nakedret
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
2 weeks ago
Max Altgelt 7411b4e266
fix: use err from Syscall instead of calling GetLastError
Call() already returns the last error, see
https://pkg.go.dev/syscall?GOOS=windows#Proc.Call.

However, some code called GetLastError() afterwards, which is racy;
if the go routine switches threads between Call() and GetLastError(),
it may return a different error than expected, or possibly nil.
2 weeks ago
shirou ec85c0b45b
Merge pull request #1842 from mmorel-35/golangci-lint/staticcheck
chore: enable staticcheck
3 weeks ago
shirou d5e33f710b
Merge pull request #1839 from OrbintSoft/remove-wmi
Remove wmi for Get physical CPU core count
3 weeks ago
Stefano Balzarotti f2b0aa5e86
linter 3 weeks ago
Matthieu MOREL cefed48244 chore: enable staticcheck linter
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
3 weeks ago
Stefano Balzarotti ab48e6b803
remove context cancellation 1 month ago
shirou 61f624bcb8
Merge pull request #1831 from niemp100/win32_cpu_values
Fix win32_SystemProcessorPerformanceInformation struct
1 month ago
Stefano Balzarotti d46c4a822d
use testify 1 month ago
Stefano Balzarotti b30f1523d8
code review 1 month ago
Stefano Balzarotti 00a28a710e
lint 1 month ago
Stefano Balzarotti b4446224fc
fix 1 month ago
Stefano Balzarotti 1ebcd369ab
implement get physical core api 1 month ago
Dmytro Vovk 244d63ddfc fix lint 2 months ago
Dmytro Vovk 1de755d2f2 possible fix 2 months ago
Niklas Empt 6f4ea788d9 Fix win32_SystemProcessorPerformanceInformation struct 2 months ago
shirou 7b14b866f1
Merge pull request #1783 from mmorel-35/revive/unused-parameter
chore: enable unused-parameter from revive
2 months ago
shirou 9d29c70c52
Merge pull request #1813 from mmorel-35/gocritic
chore: enable gocritic linter
2 months ago
shirou 2ab27a0ba3
Merge pull request #1817 from mmorel-35/revive/var-naming
chore: enable var-naming from revive
2 months ago
Matthieu MOREL dfdd90ab72 chore: enable gocritic linter 2 months ago
Matthieu MOREL 9925fd41ec chore: enable var-naming from revive
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
2 months ago
Matthieu MOREL dc9b409803 chore: enable unused-parameter from revive
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
2 months ago
Matthieu MOREL a5e496769c chore: enable begin rule from thelper
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
2 months ago
Matthieu MOREL 8c1a718a5d chore: use testify instead of testing
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
3 months ago
Matthieu MOREL 0a45e0f24d chore(golangci-lint): cover aix and cgo
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
3 months ago
Matthieu MOREL 30aff030d0 chore(golangci-lint): GOOS and GOARCH matrix
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
3 months ago
Matthieu MOREL 9ce2ec161e chore: enable golangci-lint on Windows and MacOS
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
4 months ago
uubulb 1f39525d2d refactor(darwin): optimize string allocation 5 months ago
Matthieu MOREL 7e19b35f50 enable all rules of perfsprint linter
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
5 months ago
Lomanic c37a5eba8c [cpu][netbsd] Fix "undefined: cpuTimes" error at compile time on arm
Fixes #1645
8 months ago
uubulb 9e6efdb991 update disk & cpu & process 8 months ago
uubulb 701a74be41 feat(cpu, mem, sensors)(darwin): cgo-free implementations 9 months ago
shirou 37f531010d fix golangcilint errors, ignore gosec G115 9 months ago
shirou 3caf443966 [mem][windows]: add ExWindows and implement VirualTotal/Avail
This commit fixes #1588. Thank you!
1 year ago
shirou e9591b5b01 rename redundant test function names, such as TestCPU in cpu package 1 year ago
shirou bc060cc227 add SPDX License, remove old build tag, and replace import 1 year ago
Dylan Myers 9bf502f825 Fix logic errors, syntax errors, and typos 1 year ago
Dylan Myers d551997afb Fix typos and code misplacement in AIX CPU handling 1 year ago
Dylan Myers 5d3cf2e9e7 Update AIX percpu minimum needed lines 1 year ago
Dylan Myers 0a1f220077 Remove tests, since my Go knowledge isn't yet deep enough for them 1 year ago
Dylan Myers 843d93a589 Add AIX test data 1 year ago
Dylan Myers d816d96508 Initial pass at AIX test integration 1 year ago
Dylan Myers af3f4d204d Correct arguments for AIX percpu 1 year ago
Dylan Myers 8cc32696fe Add support for additional CPU info fields 1 year ago
Dylan Myers 6b630a841a Add support for per CPU 1 year ago
shirou 53fb8caad4 [darwin][ci]: skip frequency check on GitHub Action 1 year ago
Jonathan Matthew 27ffa28a0d add support for OpenBSD/riscv64 1 year ago
shirou 4870f6f119
Merge pull request #1569 from scop/perf/regex-compile
Avoid repeated regexp compilations
1 year ago
Ville Skyttä 11bc5b3970 Avoid some uses of regexps 1 year ago