kelseyhightower / terminus

Get facts about a Linux system.
MIT License
363 stars 29 forks source link

Expose the load averages when calling SysInfo #1

Closed KushalP closed 9 years ago

KushalP commented 9 years ago

Adds a new LoadAverage struct that holds the one, five and ten minute load averages for the machine. The values are read from the unix.Sysinfo_t struct that's already loaded as part of the getSysInfo() function.

KushalP commented 9 years ago

Two things to keep in mind:

  1. I don't know if you're accepting patches
  2. I chose not to add tests here because you don't have any at the moment and I didn't want throw my own testing style at your project
kelseyhightower commented 9 years ago

@KushalP Nice! First contributor!