package
module
Version:
v0.0.0-...-6c9d7c1
Opens a new window with list of versions in this module.
Published: Jun 26, 2013
License: BSD-2-Clause
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
README
¶
loadavg
simple package for gathering the loadavg from your system
Documentation
¶
LoadAvg returns the traditional 1, 5, and 15 min load averages.
loadavg, err := LoadAvg()
if err != nil {
log.Fatal(err)
}
fmt.Printf("loadavg: %2.2f, %2.2f, %2.2f", loadavg[ONE_MIN], loadavg[FIVE_MIN], loadavg[FIFTEEN_MIN])
Output:
Source Files
¶
Click to show internal directories.
Click to hide internal directories.