Documentation ¶
Overview ¶
Package loadAvg gets loadavg information from the /proc/loadavg file.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTicker ¶
NewTicker returns a new Ticker containing a Data channel that delivers the data at intervals and an error channel that delivers any errors encountered. Stop the ticker to signal the ticker to stop running. Stopping the ticker does not close the Data channel; call Close to close both the ticker and the data channel.
Types ¶
type LoadAvg ¶
type LoadAvg struct { Timestamp int64 Minute float32 Five float32 Fifteen float32 Running int32 Total int32 PID int32 }
LoadAvg holds loadavg information
Directories ¶
Path | Synopsis |
---|---|
Package loadAvg gets loadavg information from the /proc/loadavg file.
|
Package loadAvg gets loadavg information from the /proc/loadavg file. |
Package loadAvg gets loadavg information from the /proc/loadavg file.
|
Package loadAvg gets loadavg information from the /proc/loadavg file. |
Click to show internal directories.
Click to hide internal directories.