Implement loadavg on FreeBSD without cgo

The code may also work for other BSDs, but I don't have access to those
for testing.
This commit is contained in:
Dominik Honnef 2016-12-26 22:50:20 +01:00
commit 54c74923ee
2 changed files with 28 additions and 1 deletions

View file

@ -11,7 +11,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.
// +build darwin dragonfly freebsd netbsd openbsd solaris
// +build darwin dragonfly netbsd openbsd solaris
// +build !noloadavg
package collector