cpu

package
v0.0.0-...-a534134 Latest Latest
Warning

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

Go to latest
Published: May 6, 2019 License: GPL-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cpu

type Cpu struct {
	Name string
	// If the CPU loads exceeds these thresholds, they will be rendered in the
	// corresponding state.
	WarnThreshold float64 `json:"warn_threshold"`
	CritThreshold float64 `json:"crit_threshold"`
	// contains filtered or unexported fields
}

Cpu is a small CPU load monitor. It scrapes /proc/loadavg to display your average # waiting threads over 1, 5 and 15 minute averages.

func (*Cpu) Generate

func (c *Cpu) Generate() ([]i3.Output, error)

Generate implements Generator

type CpuPerc

type CpuPerc struct {
	// Name to identify this widget when receiving events
	Name string

	// If the CPU loads exceeds these thresholds, they will be rendered in the
	// corresponding state.
	WarnThreshold float64
	CritThreshold float64
	Interval      time.Duration
	// contains filtered or unexported fields
}

Cpu is a small CPU load monitor. It scrapes /proc/loadavg to display your average # waiting threads over 1, 5 and 15 minute averages.

func (*CpuPerc) Produce

func (c *CpuPerc) Produce(kill <-chan struct{}) <-chan []i3.Output

Jump to

Keyboard shortcuts

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