Documentation
¶
Overview ¶
Gather loadavg for various platforms.
Index ¶
Examples ¶
Constants ¶
View Source
const ( MIN_1 = 0 MIN_5 = iota MIN_15 )
Variables ¶
This section is empty.
Functions ¶
func LoadAvg ¶
LoadAvg returns the traditional 1, 5, and 15 min load averages, i.e. processes that are actually running – averaged over the last 1, 5, and 15 minutes.
Example ¶
loadavg, err := LoadAvg()
if err != nil {
log.Fatal(err)
}
fmt.Printf("loadavg: %2.2f, %2.2f, %2.2f", loadavg[MIN_1], loadavg[MIN_5],
loadavg[MIN_15])
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.