Skip to content
This repository has been archived by the owner on Jun 19, 2020. It is now read-only.

Add support for *BSD load averages #460

Merged
merged 4 commits into from
Apr 29, 2020

Conversation

smortex
Copy link
Contributor

@smortex smortex commented Apr 20, 2020

The *BSD osfamily has getloadavg(3) to retrieve the load averages. This implementation was based on the Aix implementation (which also use FFI), and was tested on FreeBSD.

It is expected to work likewise on OpenBSD and NetBSD (and other derivative) since the getloadavg() function appeared in 4.3BSD-Reno.

@smortex smortex requested review from a team April 20, 2020 21:50
@puppetlabs-jenkins
Copy link
Collaborator

Can one of the admins verify this patch?

@BogdanIrimie
Copy link
Contributor

@smortex the PR looks good!

@BogdanIrimie BogdanIrimie merged commit 717e08e into puppetlabs:master Apr 29, 2020
@smortex smortex deleted the freebsd-load-averages branch April 29, 2020 19:05
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants