stats

package
v0.0.0 Latest Latest
Warning

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

Go to latest
Published: May 12, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CpuUsagePct

func CpuUsagePct() int

Returns the percentage of CPU being used

func DiskUsagePct

func DiskUsagePct() int

Returns disk utilization

func MemUsagePct

func MemUsagePct() int

Return RAM utilization

func NetworkStats

func NetworkStats() (int, int)

Returns the amount of received and transmitted bytes accumulated since start of the machine across all network interfaces except those in the list of ignored interfaces.

Types

type Network

type Network struct {
	// contains filtered or unexported fields
}

func (*Network) NetworkTraffic

func (n *Network) NetworkTraffic() (int, int)

Returns bits per second received and transmitted across all interfaces, averaged over the given number of seconds.

Jump to

Keyboard shortcuts

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