The Barista Logo

barista

An i3status alternative in golang

Download sample-bar Download i3status example View on GitHub

CPU Load Average

godoc
import "barista.run/modules/cpuload"

Display CPU load information: cpuload.New().

The sysinfo module can show load averages and additional information, and also shares updates between all sysinfo module instances, so it should be used over cpuload when possible.

Configuration

Example

0.30

Show the load average from the last minute:

cpuload.New().Output(func(l LoadAvg) bar.Output) {
	return outputs.Textf("%0.2f", i.Min1())
})

Data: type LoadAvg [3]float64

Methods