Commit Graph

7 Commits (0eae055018e6c32c003e7b2a80bdb94b1ef36891)

Author SHA1 Message Date
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