mirror of
https://github.com/shirou/gopsutil.git
synced 2025-04-24 13:48:56 +08:00

In order to improve performance and help prevent crashes due to the outstanding fork crash bug: https://github.com/golang/go/issues/15658 Replace string parsed values from the sysctl command with native reads of sysctl values using unix.SysctlRaw and unix.SysctlUint32. This also merges OpenBSD and FreeBSD load implementations which are identical.
10 lines
103 B
Go
10 lines
103 B
Go
package cpu
|
|
|
|
type cpuTimes struct {
|
|
User uint32
|
|
Nice uint32
|
|
Sys uint32
|
|
Intr uint32
|
|
Idle uint32
|
|
}
|