waste

package
v0.0.0-...-210c8ed Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: AGPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

View Source
const (
	KiB = 1024
	MiB = 1024 * KiB
	GiB = 1024 * MiB
)

Variables

View Source
var Buffers []*GiBObject

Functions

func CPU

func CPU(interval time.Duration)

func CPUPercent

func CPUPercent(referencePercent float64)

func Memory

func Memory(gib int)

func Network

func Network(interval time.Duration, connectionCount int)

Types

type GiBObject

type GiBObject struct {
	B [GiB]byte
}

Jump to

Keyboard shortcuts

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