Cpu

package
v0.0.0-...-0caaa62 Latest Latest
Warning

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

Go to latest
Published: Sep 1, 2017 License: GPL-3.0-or-later Imports: 3 Imported by: 0

Documentation

Overview

Package Cpu is a CPU monitoring applet for Cairo-Dock.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewApplet

func NewApplet(base cdtype.AppBase, events *cdtype.Events) cdtype.AppInstance

NewApplet creates a new applet instance.

Types

type Applet

type Applet struct {
	cdtype.AppBase // Applet base and dock connection.
	// contains filtered or unexported fields
}

Applet defines a dock applet.

func (*Applet) Init

func (app *Applet) Init(def *cdtype.Defaults, confLoaded bool)

Init load user configuration if needed and initialise applet.

type CPU

type CPU struct {
	sysinfo.RenderPercent
	// contains filtered or unexported fields
}

CPU monitors CPU activity and rendering on icon.

func NewCPU

func NewCPU() *CPU

NewCPU creates a new CPU monitoring service.

func (*CPU) Check

func (cpu *CPU) Check()

Check displays current CPU activity (average since last interval).

Jump to

Keyboard shortcuts

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