Commit Graph

11 Commits (5c48164b3c9613606e603ffacb612eafb6761a37)

Author SHA1 Message Date
Matthieu MOREL 30aff030d0 chore(golangci-lint): GOOS and GOARCH matrix
Signed-off-by: Matthieu MOREL <matthieu.morel35@gmail.com>
3 weeks ago
shirou bc060cc227 add SPDX License, remove old build tag, and replace import 10 months ago
mmorel-35 1e6b445a8a gofumpt 3 years ago
shirou 0969c9436b delete v2 directory, move v3 to top #1078 3 years ago
Tobias Klauser ee12f66e4d cpu, v3/cpu: use sysconf package instead of exec'ing getconf
Currently, ClocksPerSec is determined by exec'ing getconf in func init,
i.e. on startup of every program importing the package. getconf might
not be present on some systems or is not executable by the current user.
To avoid this hard to control dependency, use the
github.com/tklauser/go-sysconf package which implements sysconf(3)
entirely in Go without cgo. The package is supported on all platforms
currently supported by the cpu and v3/cpu package of gopsutil.
4 years ago
Guillaume Ballet baec973ff6 Fix stepping extraction 5 years ago
Guillaume Ballet 877e0a6603 more typo fixes 5 years ago
Guillaume Ballet 8968457048 fix typo 5 years ago
Guillaume Ballet 771601b292 use sysctl instead of parsing dmesg output 5 years ago
Guillaume Ballet 9390667f0f
Update cpu/cpu_dragonfly.go
Co-authored-by: shirou <shirou.faw@gmail.com>
5 years ago
Guillaume Ballet 56d9e0b7be cpu: support for DragonflyBSD 5 years ago