cpu

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2023 License: Apache-2.0 Imports: 5 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CPU

type CPU []Core

func Occupancy

func Occupancy() (cpu CPU, err error)

func (CPU) AVG

func (c CPU) AVG() (occupancy float64)

func (CPU) Max

func (c CPU) Max() (core Core)

func (CPU) Min

func (c CPU) Min() (core Core)

type Core

type Core struct {
	No        string  `json:"no"`
	Occupancy float64 `json:"occupancy"`
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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