system

package
v0.0.0-...-ecab513 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 9, 2022 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	CPU_CORES_CPUINFO_ERROR  = -2
	LAVG_TREND_CPUINFO_ERROR = -1
	LAVG_TREND_ERROR         = 1
	LAVG_TREND_INCREASING    = 2
	LAVG_TREND_NORMAL        = 3
	LAVG_LOAD_LEVEL_YELLOW   = 70
)

Variables

This section is empty.

Functions

func CPUCores

func CPUCores() int32

func CPUInfo

func CPUInfo() ([]cpu.InfoStat, error)

func LoadAvg

func LoadAvg() (*load.AvgStat, error)

func LoadAvgCheck

func LoadAvgCheck() int

func LoadAvgCheckCPUCores

func LoadAvgCheckCPUCores(cpuCores int32) int

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL