1
0
mirror of https://github.com/shirou/gopsutil.git synced 2025-04-26 13:48:59 +08:00

10 Commits

Author SHA1 Message Date
shirou
bc060cc227 add SPDX License, remove old build tag, and replace import 2024-05-28 22:27:17 +09:00
mmorel-35
1e6b445a8a gofumpt 2021-12-22 21:54:41 +00:00
shirou
0969c9436b delete v2 directory, move v3 to top #1078 2021-11-30 23:47:59 +00:00
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.
2021-02-19 12:20:10 +01:00
Guillaume Ballet
baec973ff6 Fix stepping extraction 2020-06-22 13:03:18 +02:00
Guillaume Ballet
877e0a6603 more typo fixes 2020-06-22 11:59:22 +02:00
Guillaume Ballet
8968457048 fix typo 2020-06-22 11:56:02 +02:00
Guillaume Ballet
771601b292 use sysctl instead of parsing dmesg output 2020-06-22 11:54:44 +02:00
Guillaume Ballet
9390667f0f
Update cpu/cpu_dragonfly.go
Co-authored-by: shirou <shirou.faw@gmail.com>
2020-06-21 12:21:18 +02:00
Guillaume Ballet
56d9e0b7be cpu: support for DragonflyBSD 2020-06-18 10:17:23 +02:00